eui icon indicating copy to clipboard operation
eui copied to clipboard

Datepicker refresh interval should not be allowed to go negative

Open LeeDr opened this issue 3 years ago • 1 comments

The number field shouldn't go below zero here. Image from 8.4.0

image

LeeDr avatar Aug 22 '22 18:08 LeeDr

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.

chandlerprall avatar Aug 22 '22 19:08 chandlerprall

👋 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.

github-actions[bot] avatar Feb 19 '23 00:02 github-actions[bot]

❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

github-actions[bot] avatar Feb 26 '23 08:02 github-actions[bot]