-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[DatePicker] textField prop: onChange is never being called #10406
Comments
DatePicker
textField
prop: onChange
is never being called
Hey @watty888 thanks for opening an issue! It looks like this is happening, because the @evlevy it looks like you made the changes to add the Thank you also for providing a code sandbox for us, that makes it a lot easier to pinpoint and debug the issue much faster! |
@natalieethell at the time textFieldProps was introduced we didn't consider folks wanting to override onChange - it was more for customizing the UI of the textField and not the behaviour. If this is now required, we would need to consider which handler to call, or possibly integrate the supplied handler into the existing one. |
(Sorry I accidentally closed this issue just now. Reopened.) |
@evlevy Got it, maybe it would be good to integrate the supplied handler into the existing |
@evlevy Opened a PR with those changes, feel free to take a look if you have a moment. |
@natalieethell thanks for your rush reply! Can you also please specify for which version your fix will be applied? The project we are currently working at uses 6.202.0. |
@watty888 This change will go into the master (7.x.x) branch, but we can also backport the changes to 6.x.x. |
That would be great, as in the projects current state, we would prefer not to update for at least some time. |
🎉This issue was addressed in #10424, which has now been successfully released as Handy links: |
🎉This issue was addressed in #10424, which has now been successfully released as Handy links: |
Hi Natalie! Great that it's fixed! However, are there any updates regarding 6.x.x version fix? |
@watty888 Thanks for the reminder! I'll cherry pick into 6.0 right now. |
You can follow the cherry-pick into 6.0 here: #10478. |
Environment Information
Bug reproduction in codesandbox:
Steps:
index.tsx
fileActual behavior:
Upon typing something in the text field, entered value is not being logged into console.
onChange
of thetextField
prop is never being called.Expected behavior:
Input of the text field must appear in the console as you type.
onChange
should callconsole.log
.Priorities and help requested:
Are you willing to submit a PR to fix? (No)
Requested priority: (High)
The text was updated successfully, but these errors were encountered: