Input: fix show password cursor (#20870)

pull/20895/head
好多大米 2021-03-26 16:57:45 +08:00 committed by GitHub
parent fa64999032
commit 04858017fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,9 @@
},
handlePasswordVisible() {
this.passwordVisible = !this.passwordVisible;
this.focus();
this.$nextTick(() => {
this.focus();
});
},
getInput() {
return this.$refs.input || this.$refs.textarea;