Skip to content

Input number max value does not behave correctly #708

@enrico-b-248

Description

@enrico-b-248

Summary

The input number option data-hs-input-number='{ "max": 10 } does not limit the typed values but only disables the increase button, contrary to the min option that cull values to be inside the defined limits.

Steps to Reproduce

  1. Go to https://preline.co/docs/input-number.html#maximum-value
  2. Type a number higher than 10 (the max value set for that input)
  3. Value is kept on the input even when focus is lost, and only the increase button gets disabled

Demo Link

https://preline.co/docs/input-number.html#maximum-value

Expected Behavior

As it happens with the min option here, the value that the user types should be corrected in real-time to be between the defined limits.

Actual Behavior

No response

Screenshots

No response

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