Replies: 2 comments 3 replies
-
Ok I found it. I'm using alpine 3.7.0 and mask plugin is 3.10.2. I've changed alpine version to 3.10.2 and its working now with empty input. But there is another issue. When I open the edit/update page input value is formatting for one second and then value looks unformatted. Input value is coming from database and column type is decimal (8,2). |
Beta Was this translation helpful? Give feedback.
0 replies
-
hello bro i found the fix problem by adding x-data attribute according to this article
https://justinbyrne.dev/blog/2022/5/22/masking-input-fields-with-alpinejs hope it help |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've a basic input like this:
I've already using alpine with this project and wanted to add mask plugin. Installed via npm and add this to my app.js:
But mask not working and there is no error on console. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions