You need to sign in to do that
Don't have an account?

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
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