How to use mask in TextInput
I've tried to follow the docs by using mask() and also inserting alpine mask script, but it doesnt work. Whats the correct way to set it up?
12 Replies
I've used this but still doesnt work, its even accepting alphabet
remove tel();
https://alpinejs.dev/plugins/mask#x-mask
still doesn work
I think there's something wrong with the installation because even using regex() or minValue for numeric text input is doesnt work
try to remove the tel() and use only the mask
That’s what Shaung just suggested
LOL I just read the link my bad
I don't see anything wrong and in V3 it should work that way, the only thing that comes to mind that could have happened is having given the correct import or something like that
It's working for me.
sometimes it can be the Textcolumn do no of the table already happened to me xD
Need the details of
doesn't work
Thanks guys for responding. I've tried to removing the tel(), using mask() or even use regex(numbers only) but still accepting all characters, no masking. I also try to apply min/maxValue(10) paired with ->numeric(). but still can reach more than 10. Iam suspecting there's wrong with the installation because I also have used V3 mask before and work perfectly
I'll try to delete the vendor and composer.lock
Still occurs. Idk why, even when I use maxLength(13) it still accepts characters more than that
For the context, Im using Wizard in a modal action
https://filamentphp.com/docs/3.x/actions/modals#using-a-wizard-as-a-modal-form
i don't know if it will help but this is what i do in v2
in the code I don't know what could be causing this