mirror of https://github.com/rancher/dashboard.git
Remove focus on mouse enter for dropdown menu items
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
df18acc984
commit
f2cf11b970
|
|
@ -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-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue