Skip to content

Commit

Permalink
fix(click-outside): remove unused vnode reference
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 16, 2022
1 parent 99e7266 commit 4d3359a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/directives/click-outside/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand All @@ -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)
}
Expand Down

0 comments on commit 4d3359a

Please sign in to comment.