From 4d3359ad52a878d88490b80cf2a3f8d5ebda7b81 Mon Sep 17 00:00:00 2001 From: Kael Date: Fri, 16 Sep 2022 23:46:04 +1000 Subject: [PATCH] fix(click-outside): remove unused vnode reference --- packages/vuetify/src/directives/click-outside/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vuetify/src/directives/click-outside/index.ts b/packages/vuetify/src/directives/click-outside/index.ts index 05727bd8236..eee0dc1fd3e 100644 --- a/packages/vuetify/src/directives/click-outside/index.ts +++ b/packages/vuetify/src/directives/click-outside/index.ts @@ -53,7 +53,7 @@ function checkIsActive (e: PointerEvent, binding: ClickOutsideDirective): boolea return isActive(e) } -function directive (e: PointerEvent, el: HTMLElement, binding: ClickOutsideDirective, vnode: VNode) { +function directive (e: PointerEvent, el: HTMLElement, binding: ClickOutsideDirective) { const handler = typeof binding.value === 'function' ? binding.value : binding.value!.handler el._clickOutside!.lastMousedownWasOutside && checkEvent(e, el, binding) && setTimeout(() => { @@ -78,7 +78,7 @@ export const ClickOutside = { // available, iOS does not support // clicks on body inserted (el: HTMLElement, binding: ClickOutsideDirective, vnode: VNode) { - const onClick = (e: Event) => directive(e as PointerEvent, el, binding, vnode) + const onClick = (e: Event) => directive(e as PointerEvent, el, binding) const onMousedown = (e: Event) => { el._clickOutside!.lastMousedownWasOutside = checkEvent(e as PointerEvent, el, binding) }