Skip to content

Conversation

@Bargs
Copy link
Contributor

@Bargs Bargs commented Aug 22, 2019

This PR changes the save query form to only validate its inputs on blur. Previously we validated on every change. This could lead to the errors flashing in the user's face before they're done typing a valid input. For example, we allow spaces in the name field, but not at the beginning or end of the name. So if a user typed this is a long name with spaces they would see the error pop up every time they type a space, only to have it disappear when they type the next letter.

This PR changes the save query form to only validate its inputs on blur. Previously we validated on every change. This could lead to the errors flashing in the user's face before they're done typing a valid input. For example, we allow spaces in the name field, but not at the beginning or end of the name. So if a user typed this is a long name with spaces they would see the error pop up every time they type a space, only to have it disappear when they type the next letter.
@Bargs Bargs added the backport This PR is a backport of another PR label Aug 22, 2019
@Bargs Bargs changed the title Save query form validation on blur (#43726) [7.x] Save query form validation on blur (#43726) Aug 22, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@Bargs Bargs merged commit 9d5e1ed into elastic:7.x Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants