Skip to content

Commit

Permalink
Input: fix show password cursor (#20870)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored Mar 26, 2021
1 parent fa64999 commit 0485801
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 0485801

Please sign in to comment.