Remove focus on mouse enter for dropdown menu items

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
Phillip Rak 2025-02-13 07:32:32 -07:00
parent df18acc984
commit f2cf11b970
1 changed files with 0 additions and 12 deletions

View File

@ -71,17 +71,6 @@ const handleActivate = (e: KeyboardEvent) => {
e?.target?.click();
}
};
/**
* Handles keydown events to focus the dropdown item.
* @param e - The Mouse event.
*/
const handleMouseEnter = (e: MouseEvent) => {
if (e?.target instanceof HTMLElement) {
e?.target?.focus();
}
};
</script>
<template>
@ -95,7 +84,6 @@ const handleMouseEnter = (e: MouseEvent) => {
@click.stop="handleClick"
@keydown.enter.space="handleActivate"
@keydown.up.down.stop="handleKeydown"
@mouseenter="handleMouseEnter"
>
<slot name="default">
<!--Empty slot content-->