HTML5 Numeric input in MS Edge appends the placeholder text

378 Views Asked by At

An invalid numeric input in ME Edge entry just get appended,

<input type="number" placeholder="Enter Value" /> 

On entering non-numeric, or entering a minus appends with the placeholder text:

enter image description here

How this can be avoided?

1

There are 1 best solutions below

0
On

This is a known bug reported on the Edge issue tracker as "Incorrect behaviour of placeholder text in a text field 'number' when typing letters".