mirror of
https://github.com/tenrok/maska.git
synced 2026-06-05 16:42:28 +03:00
fix(alpine): turn opts to plain object
Because evaluate returns proxy version
This commit is contained in:
@@ -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<MaskInputOptions>(directive.expression) }
|
||||
: {}
|
||||
|
||||
if (directive.value != null) {
|
||||
|
||||
Reference in New Issue
Block a user