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:
@@ -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')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user