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
{{ message }}
Repository navigation
[EuiFieldNumber] Accepts whitespaces as valid in Firefox and Safari #4097
EuiFieldNumber is simply a wrapper around <input type="number">. We don't add any extra logic based on certain browsers. I double-checked Firefox's default behavior and it is the same, it allows the user to enter spaces (and letters):
Though it does actually then show the input as invalid once you de-focus the element.
For that reason, I'm going to say that the true fix is on the browser side, and that the fix we can do in EUI is to be better at displaying invalid while focused which is now a duplicate of #2017 (comment).
I'm going to close this issue and try to make that one a priority.
Activity
cchaos commentedon Oct 2, 2020
EuiFieldNumber is simply a wrapper around
<input type="number">. We don't add any extra logic based on certain browsers. I double-checked Firefox's default behavior and it is the same, it allows the user to enter spaces (and letters):Though it does actually then show the input as invalid once you de-focus the element.
For that reason, I'm going to say that the true fix is on the browser side, and that the fix we can do in EUI is to be better at displaying invalid while focused which is now a duplicate of #2017 (comment).
I'm going to close this issue and try to make that one a priority.