value of <input type='number'> doesn't get limited by min/max attributes

Fixed, flighted Issue #10538279

Details

Author
Ana T.
Created
Jan 14, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14393
Fixed in build #
15034
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Consider the following two number inputs:
<input type='number' min='0' value='0'/>
<input type='number' max='10' value='10'/>
  1. Arrow up/ down to change value.

Expected:

The min attribute should prevent the value of the first input from going below 0. The max attribute should prevent the value of the second input from going above 10. This is what happens in Chrome and Firefox.

Actual result in Edge:

The presence of the min and max attributes seems to do nothing in Edge. The value of the first input isn’t prevented from going below 0 and the value of the second input isn’t prevented from going above 10.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Title from “value of <input type='number'> doesn't get limited by min/ max attributes” to “value of <input type='number'> doesn't get limited by min/max attributes”

  • Verified repro of this, worth noting that if you do try to submit an invalid number it will pop an error tooltip and not submit. That said, this doesn’t help out use cases where the input type number isn’t necessary for submitting to a server but utilized for some UI interactivity. Moving to the appropriate team for triage.

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

    Changed Assigned To from “Ibrahim O.” to “Francois R.”

    Changed Status to “Confirmed”

    Changed Status from “Confirmed” to “Fixed, not yet flighted”

  • A fix for the issue has been checked in. This issue should be resolved in our next public release, Windows Creators Update.

  • Microsoft Edge Team

    Changed Status from “Fixed, not yet flighted” to “Fixed, flighted”

  • its still not fixed for edge. in chrome the min and max input work but does not work in edge

You need to sign in to your Microsoft account to add a comment.

Sign in