2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-05 16:42:28 +03:00

Make directive change async for correct eager mode

Fix #133 where eager mask used with v-model
This commit is contained in:
Alexander Shabunevich
2023-02-11 16:12:15 +03:00
parent df99482c70
commit 359f446d72
4 changed files with 24 additions and 20 deletions
+3 -3
View File
@@ -2,10 +2,10 @@
import { ref } from 'vue'
import { vMaska } from '../../src'
const data = ref('123')
const data = ref('1234')
</script>
<template>
<input v-maska data-maska="#-#" v-model="data" />
<button @click="data = '345'">Set</button>
<input v-maska data-maska="##-#" v-model="data" data-maska-eager />
<button @click="data = '5678'">Set</button>
</template>