diff --git a/packages/alpine/src/alpine.ts b/packages/alpine/src/alpine.ts index 729111b..15a44cc 100644 --- a/packages/alpine/src/alpine.ts +++ b/packages/alpine/src/alpine.ts @@ -10,9 +10,9 @@ export const xMaska = (Alpine: Alpine): void => { if (input == null || input?.type === 'file') return utilities.effect(() => { - const opts: MaskInputOptions = + const opts = directive.expression !== '' - ? utilities.evaluate(directive.expression) + ? { ...utilities.evaluate(directive.expression) } : {} if (directive.value != null) {