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 directives x-model.number="var" and x-mask:dynamic="$money" doesn't works well together. I think this is due to the formatted result that is not a "valid" number and break once parseFloat(value) is called. The resulting number is then formatted back by the dynamic mask and some information is lost in the process.
type 1 -> parseFloat('1') -> '1' -> displays 1
type 100 -> parseFloat('100') -> '100' -> displays 100
type 1,000.00 -> parseFloat('1,000.00') -> '1' -> displays 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
The directives
x-model.number="var"
andx-mask:dynamic="$money"
doesn't works well together. I think this is due to the formatted result that is not a "valid" number and break onceparseFloat(value)
is called. The resulting number is then formatted back by the dynamic mask and some information is lost in the process.Beta Was this translation helpful? Give feedback.
All reactions