2
0
mirror of https://github.com/tenrok/maska.git synced 2026-06-14 18:42:27 +03:00

#50 Fix unnecessary mask update on state change

This commit is contained in:
Alexander Shabunevich
2021-11-07 15:46:51 +03:00
parent abff14bea0
commit 9676906225
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ const directive = () => {
if (!mask.value) return
if (state.has(el) && !needUpdate(mask)) {
return state.get(el).updateValue(el)
return
}
state.set(el, new Maska(el, getOpts(mask.value)))