-
Notifications
You must be signed in to change notification settings - Fork 832
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
Release rc.10 #457
Release rc.10 #457
Conversation
Add these three functions: 1. getSecondText 2. getSeconds 3. setSeconds
Update date on blur
…ker for HOC sharing
@cherniavskii will you have any chance to briefly review it? Thank you |
} | ||
|
||
static defaultProps = { | ||
minDate: '1900-01-01', | ||
maxDate: '2100-01-01', | ||
disablePast: false, | ||
disableFuture: false, | ||
allowKeyboardControl: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it's also breaking change - it was enabled by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually its not a breaking change - because its enabled in the DatePickerWrapper.
The logic is - if you are using default wrapper with modal you have events disabled. If you are using some internal component - you got its disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got confused with DatePicker
and DatePickerWrapper
components once again :/
Okay, it's not a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D I think we should rename them in the next iteration
okLabel: PropTypes.string.isRequired, | ||
cancelLabel: PropTypes.string.isRequired, | ||
clearLabel: PropTypes.string.isRequired, | ||
okLabel: PropTypes.node.isRequired, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, okLabel
is used as aria-label
in Button
component. Same with other labels. Wouldn't that break aria-labels?
I've added support for seconds in |
@dmtrKovalenko I'm noticing a couple bugs with Cannot select other datesWhen the calendar is open, today's date (or whatever value is) is selected, but you cannot select other dates. I updated #459 with fixes for these changes since these issues are all tightly related.
|
@mcMickJuice thank you, your PR fixes all of these issues? |
Add todayLabel and showTodayButton to TS type definitions
Nope, sorry here are the DatePicker related issues and checked are what my PR fixes:
Based on looking at the code in |
I think we are ready to release 🚀 |
@@ -66,6 +67,17 @@ export default class ModalWrapper extends PureComponent { | |||
open: false, | |||
} | |||
|
|||
static getDerivedStateFromProps(nextProps) { | |||
// only if accept = true close the dialog | |||
if (nextProps.isAccepted) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you're handling opening/closing of Modal declaratively, using isAccepted
as the signal to close, correct? As opposed to imperatively using a ref to ModalWrapper?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcMickJuice you are exactly right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool! thanks
We apologize for long break between releases. But we have done a lot inside ⭐️
Big thanks to 6 contributors, that makes this release possible ❤️
Here is what's changed:
Breaking changes
We have redone forwarding refs logic with the new React's api. So no more
pickerRef
propFeatures
seconds
prop @baigallowKeyboardControl
to false.Fixes
onKeyDown
typescript property forDateTextFieldProps
@ahmad IlaiwitodayLabel
andshowTodayButton
for pickers props @tjaskula