Skip to content

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

@bennlich

Description

@bennlich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions