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