-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Vis: Default editor] Create number_input with numeric value required #48117
Conversation
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
@elasticmachine merge upstream |
Pinging @elastic/kibana-app (Team:KibanaApp) |
💔 Build Failed |
Jenkins, test this - flaky discover test |
@elasticmachine merge upstream |
💚 Build Succeeded |
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.
This seems to work fine (threshold line values validated correctly). I'm guessing but is the code for number input duplicated because setValidity
isn't passed in everywhere which would cause errors? What if I need a non-required number input, then this comment doesn't really help, right? https://github.com/elastic/kibana/pull/48117/files#diff-b2e640da85879261119c39ecbe0479c9R39
A little PR description would be helpful
@flash1293 thanks for pushing me up 😊 |
💚 Build Succeeded |
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, thanks for the documentation 👍
Summary
This resolves #49611 .
Created a
reuired_number_input_option
for future usage insideOptions
tab in the default editor.This will validate empty values and store the to the state params as
null
.The more description about the feature request could be find in #49611
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers