You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user enters decimal numbers eg: 1.5, the onChange callback of NumberInput component intermittently returns empty value.
This is causing issue for Set-number fields which was implemented in MC-frontend (experimental component).
The Set fields works based on total number of values present and ignoring any empty values. When the user inputs . (dot) then the onChange returns empty value which is causing the Number input in the UI to disappear.
Describe the bug
When user enters decimal numbers
eg: 1.5
, the onChange callback of NumberInput component intermittently returns empty value.This is causing issue for Set-number fields which was implemented in MC-frontend (experimental component).
The
Set
fields works based on total number of values present and ignoring any empty values. When the user inputs.
(dot) then theonChange
returns empty value which is causing the Number input in the UI to disappear.https://commercetools.atlassian.net/browse/PDM-5
JFYI: @bradd123 & @ismaelocaramelo have some ideas for how it could be done by UI Kit.
Steps To Reproduce
plus
icon to add a new number inputExpected behavior
onChange
to return the dot along with number1.
1.0
The text was updated successfully, but these errors were encountered: