Browse Source

rename some binding hooks according to new names

Henry Jameson 2 years ago
parent
commit
7b10e47b21
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/directives/body_scroll_lock.js

+ 2 - 2
src/directives/body_scroll_lock.js

@@ -55,7 +55,7 @@ const directive = {
       disableBodyScroll(el)
       disableBodyScroll(el)
     }
     }
   },
   },
-  componentUpdated: (el, binding) => {
+  updated: (el, binding) => {
     if (binding.oldValue === binding.value) {
     if (binding.oldValue === binding.value) {
       return
       return
     }
     }
@@ -66,7 +66,7 @@ const directive = {
       enableBodyScroll(el)
       enableBodyScroll(el)
     }
     }
   },
   },
-  unbind: (el) => {
+  unmounted: (el) => {
     enableBodyScroll(el)
     enableBodyScroll(el)
   }
   }
 }
 }