From bdd240a2308ee729680a7e9d0cf7d801dfdbe4cc Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 28 Mar 2022 17:21:42 +0300 Subject: fix some more warnings --- src/directives/body_scroll_lock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/directives/body_scroll_lock.js') diff --git a/src/directives/body_scroll_lock.js b/src/directives/body_scroll_lock.js index 13a6de1c..f5cc2247 100644 --- a/src/directives/body_scroll_lock.js +++ b/src/directives/body_scroll_lock.js @@ -50,7 +50,7 @@ const enableBodyScroll = (el) => { } const directive = { - inserted: (el, binding) => { + mounted: (el, binding) => { if (binding.value) { disableBodyScroll(el) } -- cgit v1.2.3-70-g09d2 From 7b10e47b21d4bd130d5d44f394e4836548899fd9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 28 Mar 2022 23:54:30 +0300 Subject: rename some binding hooks according to new names --- src/directives/body_scroll_lock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/directives/body_scroll_lock.js') diff --git a/src/directives/body_scroll_lock.js b/src/directives/body_scroll_lock.js index f5cc2247..b6d16790 100644 --- a/src/directives/body_scroll_lock.js +++ b/src/directives/body_scroll_lock.js @@ -55,7 +55,7 @@ const directive = { disableBodyScroll(el) } }, - componentUpdated: (el, binding) => { + updated: (el, binding) => { if (binding.oldValue === binding.value) { return } @@ -66,7 +66,7 @@ const directive = { enableBodyScroll(el) } }, - unbind: (el) => { + unmounted: (el) => { enableBodyScroll(el) } } -- cgit v1.2.3-70-g09d2