Skip to content
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

Range element min + max attributes must come before value attribute #124

Open
bennlich opened this issue Jul 30, 2021 · 0 comments
Open

Comments

@bennlich
Copy link

For posterity: for a range element with custom min/max attributes, make sure those attributes come before the value attribute on the input. E.g.:

This

<input type="range" min="0" max="9000" value="8000">

Not this

<input type="range" value="8000" min="0" max="9000">

This is because the DOM truncates the value attribute to 100 if there is not already a custom max attribute during copyAttrs.

Maybe a fix would be for copyAttrs to be aware of this dependency and explicitly copy over min + max before value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant