2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-20 20:00:34 +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(() => { utilities.effect(() => {
const opts: MaskInputOptions = const opts: MaskInputOptions =
directive.expression != null directive.expression !== ''
? utilities.evaluate(directive.expression) ? utilities.evaluate(directive.expression)
: {} : {}
@@ -45,5 +45,5 @@ export const xMaska = (Alpine: Alpine): void => {
}) })
utilities.cleanup(() => masks.get(input)?.destroy()) utilities.cleanup(() => masks.get(input)?.destroy())
}) }).before('model')
} }