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
The safeConvertValue is reseting the number when we add the dot.
We can use onBlur here (The onblur event occurs when an object loses focus).
Maybe when we validate it on the onChange event it will accept value as "1.", and on onBlur event we will add a "0" to the "1." so it will become "1.0".
What do you think?
I think it makes sense to use the onBlur, but it might break behavior somewhere else (as it's typedInput), maybe add if valueType === 'number' and newValue end with "." add zero. (inside safeConvertValue)
Tweek editor doesn't support decimal values only through the Source tab
The text was updated successfully, but these errors were encountered: