2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-20 20:00:34 +03:00

fix(alpine): turn opts to plain object

Because evaluate returns proxy version
This commit is contained in:
Alexander Shabunevich
2024-05-08 19:04:40 +03:00
parent 89dbf2460a
commit ba05e548c0
+2 -2
View File
@@ -10,9 +10,9 @@ export const xMaska = (Alpine: Alpine): void => {
if (input == null || input?.type === 'file') return if (input == null || input?.type === 'file') return
utilities.effect(() => { utilities.effect(() => {
const opts: MaskInputOptions = const opts =
directive.expression !== '' directive.expression !== ''
? utilities.evaluate(directive.expression) ? { ...utilities.evaluate<MaskInputOptions>(directive.expression) }
: {} : {}
if (directive.value != null) { if (directive.value != null) {