function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Scott H.Scott H. 

LWC Number Input Validation issue in IE11

Hi,

There seems to be an inconstant behavior with regards to number input validation between IE11 & other browsers (such as FF or chrome).

When I have an input such as

<lightning-input
   type='number'
   step=1
/>

and I input an invalid number, such as "1.2" there is different behaviors.

On Chrome and FF a validation error message "Your entry isn't a valid increment." shows up and the validity of the component is false.

In IE11, no validation error shows up & the validity of the component is shown to be valid. However, the value sent by that component appears to be truncated. In the case of my example "1.2" in the user input field gets set as a value of "1" when reading the value from a change listener.

Is this expected behavior in IE11?

Thanks,
Scott