You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onChange does not follow normal event handling design pattern. Please provide the original DOM event to onChange.
o Always provide the event as the first argument to any user facing event prop handler
o The "event.target" needs to be supplied
o The "event.target.name" should be the control name
o The "event.target.value" should contain the "date"
What's not obvious is where the date originated from. Without the event a complex app doesn't have the originating "event.target" and therefore cannot determine the originating control with "event.target.name".
All we get is a "date". From which control? We have multiple modules with dozens of controls that send changes up to a parent. This is the only control that doesn't forward the event on an onChange.
We cannot use material-ui-pickers until onChange supports the established event handling design pattern
The text was updated successfully, but these errors were encountered:
FoxyWolfy
changed the title
Provide original DOM event to onChange
onChange does not follow the normal event handling design pattern
Nov 26, 2019
Only issues that was found super fast, there are more #182, #473, #483, #644, #974. Please try to search through the currently closed issues before opening new one
onChange does not follow normal event handling design pattern. Please provide the original DOM event to onChange.
o Always provide the event as the first argument to any user facing event prop handler
o The "event.target" needs to be supplied
o The "event.target.name" should be the control name
o The "event.target.value" should contain the "date"
What's not obvious is where the date originated from. Without the event a complex app doesn't have the originating "event.target" and therefore cannot determine the originating control with "event.target.name".
All we get is a "date". From which control? We have multiple modules with dozens of controls that send changes up to a parent. This is the only control that doesn't forward the event on an onChange.
We cannot use material-ui-pickers until onChange supports the established event handling design pattern
The text was updated successfully, but these errors were encountered: