Skip to content

Commit

Permalink
Input: fix show password cursor (ElemeFE#20870)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored and hzsrc committed Feb 2, 2023
1 parent 29b03f8 commit 5dc8735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/input/src/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,9 @@
},
handlePasswordVisible() {
this.passwordVisible = !this.passwordVisible;
this.focus();
this.$nextTick(() => {
this.focus();
});
},
getInput() {
return this.$refs.input || this.$refs.textarea;
Expand Down

0 comments on commit 5dc8735

Please sign in to comment.