-
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
See https://codesandbox.io/p/sandbox/5x5z3s
The current implementation of onChange is too restrictive, only triggering when a user selects a predefined list item or confirms custom input by pressing Return.
This creates a user experience issue: if a user types a custom value and then moves focus to another form field (blurs), the value is visually retained in the input, but the underlying state is not updated because onChange was never called.
To resolve this state-UI discrepancy, onChange should also be called on the blur event.
Metadata
Metadata
Assignees
Labels
No labels