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 abigail-0111 committed Dec 21, 2021
1 parent b7b4353 commit 2939588
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 2939588

Please sign in to comment.