-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Monitor Management] Don't show required error on Script Field before field is touched. #132339
[Monitor Management] Don't show required error on Script Field before field is touched. #132339
Conversation
…d is touched/changed.
Pinging @elastic/uptime (Team:uptime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
POST FF Testing, found an issue where it wasn't showing validation error for script field on submit form raised a PR to fix it |
Now that the Browser type will be the default monitor type for Synthetics, Script field should not show a required validation error until it is touched/changed.
The CodeEditor component doesn't expose onBlur so the PR makes use of onChange to show required validation error only after code is changed.
Also, with Zip Url field as well, only shows validation error if it was touched (onBlur).
The above two changes will only be effective under uptime. Under fleet, the form fields aren't changed.