-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix Calendar mask not firing onInput event #8458
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
Fix Calendar mask not firing onInput event #8458
Conversation
|
@melloware Please let me know if you’d like any refinements or adjustments. |
|
Working on (and one that also affected me), I was able to quickly understand & fix it. |
|
@Coderxrohan Thanks for this fix, as this issue caused me to panic for some time. |
abcf6a4 to
7908941
Compare
|
Thanks @melloware |
Fix Calendar
onInputwhenmaskis enabledProblem
When the
maskprop is used, Calendar routes user typing throughupdateValueOnInput()but does not forward the nativeonInputevent.As a result,
props.onInputnever fires when mask is enabled.Solution
Forward
props.onInput(event)insideupdateValueOnInput, ensuringconsistent behavior between masked and unmasked Calendar inputs.
Result
onInputfires correctly withmaskmaskFixes #7640 (Calendar: With "mask", not work callback "onInput")