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