fix(components): [mention] keyboard control options not work as expected (#18751)

* fix(components): [mention] keyboard control options not work as expected

* fix: use mousemove instead of mouseenter

* chore: update
This commit is contained in:
btea 2024-11-05 12:42:48 +08:00 committed by GitHub
parent fe881ff337
commit 2cb7d1cb03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@
role="option" role="option"
:aria-disabled="item.disabled || disabled || undefined" :aria-disabled="item.disabled || disabled || undefined"
:aria-selected="hoveringIndex === index" :aria-selected="hoveringIndex === index"
@mouseenter="handleMouseEnter(index)" @mousemove="handleMouseEnter(index)"
@click.stop="handleSelect(item)" @click.stop="handleSelect(item)"
> >
<slot name="label" :item="item" :index="index"> <slot name="label" :item="item" :index="index">