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
In the onChange event there's an Action Meta that exposes the reason the event was called.
Would it be possible to add a similar behavior to the onBlur event? It can also be called due to different reasons: selecting a value, a click outside of the component, a clear, etc.
Right now, detecting the reason it was called is very cumbersome and requires a lot of hacky code, mainly a bunch of refs, that rely on internal behavior that is prone to break with future updates. Having a simple Action Meta parameter in the callback will simplify this a lot.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In the onChange event there's an Action Meta that exposes the reason the event was called.
Would it be possible to add a similar behavior to the onBlur event? It can also be called due to different reasons: selecting a value, a click outside of the component, a clear, etc.
Right now, detecting the reason it was called is very cumbersome and requires a lot of hacky code, mainly a bunch of refs, that rely on internal behavior that is prone to break with future updates. Having a simple Action Meta parameter in the callback will simplify this a lot.
Beta Was this translation helpful? Give feedback.
All reactions