fix(components): [select] fix select hover flicker (#9521)

* fix(components): [select] fix select hover flicker

closed #9500

* fix(components): [select] fix select hover flicker

closed #9500
This commit is contained in:
Chen_Z 2022-09-09 12:35:36 +08:00 committed by GitHub
parent 0296ba2fb7
commit 838001aadd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,11 @@
@show="handleMenuEnter"
>
<template #default>
<div class="select-trigger">
<div
class="select-trigger"
@mouseenter="inputHovering = true"
@mouseleave="inputHovering = false"
>
<div
v-if="multiple"
ref="tags"
@ -189,8 +193,6 @@
@keydown.enter.stop.prevent="selectOption"
@keydown.esc="handleKeydownEscape"
@keydown.tab="visible = false"
@mouseenter="inputHovering = true"
@mouseleave="inputHovering = false"
>
<template v-if="$slots.prefix" #prefix>
<div