Revert "chore: put back stop propagation on mode hover (#121)"

This reverts commit c015148f29.
This commit is contained in:
Benjamin Canac
2022-12-20 16:26:55 +01:00
parent 275fa1831d
commit 758e6f1400
2 changed files with 0 additions and 14 deletions

View File

@@ -172,13 +172,6 @@ onMounted(() => {
}
const menuProvidesSymbols = Object.getOwnPropertySymbols(menuProvides)
menuApi.value = menuProvidesSymbols.length && menuProvides[menuProvidesSymbols[0]]
// stop trigger click propagation on hover
menuApi.value?.buttonRef?.addEventListener('click', (e: Event) => {
// ignore links as it would break navigation
if (props.mode === 'hover' && (e.target as Element)?.tagName !== 'A') {
e.stopPropagation()
}
}, true)
}, 200)
})

View File

@@ -86,13 +86,6 @@ onMounted(() => {
}
const popoverProvidesSymbols = Object.getOwnPropertySymbols(popoverProvides)
popoverApi.value = popoverProvidesSymbols.length && popoverProvides[popoverProvidesSymbols[0]]
// stop trigger click propagation on hover
popoverApi.value?.button?.addEventListener('click', (e: Event) => {
// ignore links as it would break navigation
if (props.mode === 'hover' && (e.target as Element)?.tagName !== 'A') {
e.stopPropagation()
}
}, true)
}, 200)
})