Skip to content

Commit 4d174eb

Browse files
cs1707cn3lfs
authored andcommitted
Input: fix show password cursor (ElemeFE#20870)
1 parent 60a0b86 commit 4d174eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/input/src/input.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@
403403
},
404404
handlePasswordVisible() {
405405
this.passwordVisible = !this.passwordVisible;
406-
this.focus();
406+
this.$nextTick(() => {
407+
this.focus();
408+
});
407409
},
408410
getInput() {
409411
return this.$refs.input || this.$refs.textarea;

0 commit comments

Comments
 (0)