fix(input): 为密码可见性切换按钮补上 mousedown.prevent,修复连续点击时误选中页面文本 (#4291)
This commit is contained in:
parent
4be2d53c13
commit
bb894e68e1
|
|
@ -232,6 +232,7 @@
|
|||
role="button"
|
||||
:aria-label="state.passwordVisible ? 'hide password' : 'show password'"
|
||||
tabindex="0"
|
||||
@mousedown.prevent
|
||||
@click.native="handlePasswordVisible"
|
||||
></component>
|
||||
<component
|
||||
|
|
@ -246,6 +247,7 @@
|
|||
role="button"
|
||||
:aria-label="state.maskValueVisible ? 'hide content' : 'show content'"
|
||||
tabindex="0"
|
||||
@mousedown.prevent
|
||||
@click.native="state.maskValueVisible = !state.maskValueVisible"
|
||||
></component>
|
||||
<span
|
||||
|
|
|
|||
|
|
@ -143,6 +143,7 @@
|
|||
role="button"
|
||||
:aria-label="state.passwordVisible ? 'hide password' : 'show password'"
|
||||
tabindex="0"
|
||||
@mousedown.prevent
|
||||
@click.native="handlePasswordVisible"
|
||||
></component>
|
||||
<component
|
||||
|
|
@ -152,6 +153,7 @@
|
|||
role="button"
|
||||
:aria-label="state.maskValueVisible ? 'hide content' : 'show content'"
|
||||
tabindex="0"
|
||||
@mousedown.prevent
|
||||
@click.native="state.maskValueVisible = !state.maskValueVisible"
|
||||
></component>
|
||||
<span
|
||||
|
|
|
|||
Loading…
Reference in New Issue