We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f42649 commit 2c7f070Copy full SHA for 2c7f070
src/plugin.js
@@ -272,6 +272,16 @@ export default (options = {}, IMask = null) => ({
272
value.value = unmask.value ? Mask.value.masked.unmaskedValue : Mask.value.value
273
}
274
275
+ const passiveSync = () => {
276
+ el$.value.resetting = true
277
+
278
+ syncMask()
279
280
+ nextTick(() => {
281
+ el$.value.resetting = false
282
+ })
283
+ }
284
285
const initMask = () => {
286
if (Mask.value) {
287
destroyMask()
@@ -283,7 +293,7 @@ export default (options = {}, IMask = null) => ({
293
syncMask()
294
})
295
- syncMask()
296
+ passiveSync()
297
288
298
// Unwatch all
289
299
watchers.value.map(w => w())
0 commit comments