2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-30 15:24:06 +03:00

fix: alpine directive expression check

This commit is contained in:
Alexander Shabunevich
2024-04-18 10:17:20 +03:00
parent 29d9a24f35
commit d8d2f75446
+2 -2
View File
@@ -11,7 +11,7 @@ export const xMaska = (Alpine: Alpine): void => {
utilities.effect(() => {
const opts: MaskInputOptions =
directive.expression != null
directive.expression !== ''
? utilities.evaluate(directive.expression)
: {}
@@ -45,5 +45,5 @@ export const xMaska = (Alpine: Alpine): void => {
})
utilities.cleanup(() => masks.get(input)?.destroy())
})
}).before('model')
}