Skip to content

Commit

Permalink
fix: removed unneeded show command
Browse files Browse the repository at this point in the history
  • Loading branch information
kouts committed Aug 20, 2022
1 parent cde47d4 commit cc02e19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/VueSimpleDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ const popoverKeydown = (e: KeyboardEvent) => {
if (e.target === popover.$refs.popperContent.$el) {
e.preventDefault()
popover.hide()
} else {
popover.show()
}
}
}
Expand All @@ -69,7 +67,7 @@ const hide = () => {
document.removeEventListener('keydown', popoverKeydown)
const popover = baseDropdownRef.value as BaseDropdownRef
popover.$refs.popper.$_targetNodes?.[0]?.focus()
popover?.$refs.popper.$_targetNodes?.[0]?.focus()
}
onBeforeUnmount(() => {
Expand Down

0 comments on commit cc02e19

Please sign in to comment.