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
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
-
I am trying to use the money input mask on a number field.
When typing numeric input, it will clear the value when a comma is inserted, since that's not allowed.
Everything works when it's a text input field, but now it is tedious to convert the value to a number to be used in alpine.
I would like to use x-model on the input and use it's value in calculations on change.
Here is a demo of the issue: https://codepen.io/mortona42/pen/QwLEPxG
The 3rd example is close to what I'm trying to do - masked input, with numeric value.
Beta Was this translation helpful? Give feedback.
All reactions