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