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
When in single-value mode (or select if you prefer) with enforceWhitelist=true I would like to avoid to have the ability to leave the input empty; it should always be set to some value (like a real select).
Because I don't see any other way I used an hook to reject the deletion, it does work fine but the text is deleted anyway no matter what.
There should be a fix for this or even better when in this mode a value should always be required to avoid leaving the input empty (and so avoid backspace and remove the 'x' button).
EDIT: To point out why it works fine, I see that by sending the form the value is indeed there and not deleted.
EDIT 2: Just to add another thing, a workaround is to use
``## Prerequisites
馃挜 Demo Page
https://jsbin.com/jozesasopa/edit?js,console,output
Explanation
When in single-value mode (or select if you prefer) with
enforceWhitelist=true
I would like to avoid to have the ability to leave the input empty; it should always be set to some value (like a real select).Because I don't see any other way I used an hook to reject the deletion, it does work fine but the text is deleted anyway no matter what.
There should be a fix for this or even better when in this mode a value should always be required to avoid leaving the input empty (and so avoid backspace and remove the 'x' button).
EDIT: To point out why it works fine, I see that by sending the form the value is indeed there and not deleted.
EDIT 2: Just to add another thing, a workaround is to use
The text was updated successfully, but these errors were encountered: