-
-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render Tile as div when there is no onClick #221
base: main
Are you sure you want to change the base?
Conversation
I will fix tests at the evening... |
I'm pretty sure Tile has to always be a button, because otherwise you can't select a tile. onClick will always be defined. |
Ok, so how can I render a calendar without any selection functionality? |
BTW, I'm using only the MonthView in my app, so it can be rendered without |
I gave this a thought and this could work, provided that we won't have any onClick passed to tiles, and this at the moment is always happening. Even if drillDown is not available (like on MonthView), there will be onChange passed. That's not good :( We would need to rethink some other areas of this package. |
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2. - [Release notes](https://github.com/mysticatea/eslint-utils/releases) - [Commits](mysticatea/eslint-utils@v1.3.1...v1.4.2) Signed-off-by: dependabot[bot] <[email protected]>
* [breaking] Remove react-lifecycles-compat polyfill * [breaking] Bump minimum React version to 16.3
* Implement defaultValue, defaultView, defaultActiveStartDate * Add onViewChange callback * Rename onActiveDateChange to onActiveStartDateChange * Prioritize activeStartDate over value when getting default active start date
… custom function (wojtekmaj#241) Fix an issue where Navigation for century view, decade view and year view would not have titles properly localized in th-TH locale Fix an issue where Decade and Year tiles would not have labels properly localized in th-TH locale Add support for custom formatYear function Add new tests for formatting tiles Fixes wojtekmaj#238
* Implement showDoubleView * Fix tests for Navigation component * Add unit tests for showDoubleView
* Add makeGetRange helper * Add isValidDate helper * Fixup makeGetRange * Fix test names * More compressed formatting of switch * Add makeGetEdgeOfNeighbor helper * Add docs * Add makeGetEdgeOfNeighborMonth helper * Remove getDifferentMonth function * Add comments * Add makeGetEnd helper * Refactor toYearLabel
cef9c7c
to
cd7ef12
Compare
0f9c665
to
88f5da5
Compare
1f10b65
to
0c5a8da
Compare
d6fcc20
to
da505dd
Compare
3407450
to
7fc3da6
Compare
9045b27
to
22f61e6
Compare
dc4fd25
to
a8c5ad5
Compare
This PR renders
div
instead ofbutton
whenonClick
method is not provided