x-mask and $money don't work in separate data directives (CSP) #4077
Unanswered
kg-currenxie
asked this question in
5. Bugs
Replies: 1 comment 5 replies
-
They aren't normal magics. They exist only in the scope of the expression. You can pass it into your own function though, since it's just a function. x-mask="myFormatter($money, $input)" |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hi :)
Moving from
x-mask:dynamic="$money($input...
to
i assume its because of this
value(input)
here? 🤔https://github.com/alpinejs/alpine/blob/main/packages/mask/src/index.js#L21
or if not, is there another way to access the plugin?
Beta Was this translation helpful? Give feedback.
All reactions