-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[core] fix(NumericInput): don't apply textbox role #5420
[core] fix(NumericInput): don't apply textbox role #5420
Conversation
{...inputGroupHtmlProps} | ||
aria-valuemax={this.props.max} | ||
aria-valuemin={this.props.min} | ||
aria-valuenow={valueAsNumber} |
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.
Realized that these are probably not needed due to the fact that the <input>
already has min
and max
props, and a value.
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.
Is there any documentation for this? Would it hurt to leave them in?
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.
I don't think it hurts, just unneccessary
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.
Does the browser read min/max attributes when the input type is "text"? I feel like they could potentially be useful there... but again, I don't have specific documentation to support this idea.
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.
that is a very good point actually. We should probably keep these since the type is "text".
Fixes #0000
Checklist
Changes proposed in this pull request:
update the
type
prop for the<input>
element created in anumericInput
.role
prop no longer needed due to giventype