eui
eui copied to clipboard
Datepicker refresh interval should not be allowed to go negative
The number field shouldn't go below zero here. Image from 8.4.0
We use the input[type=number] element here which, by itself, doesn't allow additional configuration over content. We could probably intercept the key event and prevent the default browser action if it isn't a numeral or dot (/[0-9.]/). To handle using the down arrow in the spinner, we can similarly enforce a minimum value of 0. I don't think we'd want specific logic if an application passes a negative number, as the error state handling will continue working for that scenario.
Relates in concept to #5186, as both require a pattern for allowing users to get into, see, and edit error states without the error handling logic interrupting them.
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.