-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiSuperDatePicker] Crashes and throws Invalid time value
for edge case values
#4777
Comments
Invalid time value
for edge case valuesInvalid time value
for edge case values
@cchaos Can we limit the characters the user type in the input field and set it to maybe 8 characters !? this might be the simplest fix? |
Unfortunately, no, that isn't a valid fix. The problem isn't that they've type 9+ characters, the problem is that the component crashes. The component needs to gracefully handle user input error and not completely crash the UI. If an error surfaces as a result of user input, then the text field just needs to display as invalid and give feedback to the user. |
Invalid time value
for edge case valuesInvalid time value
for edge case values
@cchaos Yeah i get it. I thought user would understand that if he can is allowed to enter just 8 digits that is the valid input! |
This is just one combination of user inputs that can lead the component to crashing. The underlying problem is that an
++ to this! |
Whoops, forgot to close this issue when #5263 merged. This has been fixed. |
Summary
Using the super time picker in Kibana can lead to UI crashing for edge case values (see elastic/kibana#91138).
How to reproduce
Is there a recommended way to handle this outside of the elastic/eui lib such that we can not crash and guide users to the erroneous input?
Gif
The text was updated successfully, but these errors were encountered: