Commit 04858017 authored by 好多大米's avatar 好多大米 Committed by GitHub

Input: fix show password cursor (#20870)

parent fa649990
...@@ -403,7 +403,9 @@ ...@@ -403,7 +403,9 @@
}, },
handlePasswordVisible() { handlePasswordVisible() {
this.passwordVisible = !this.passwordVisible; this.passwordVisible = !this.passwordVisible;
this.$nextTick(() => {
this.focus(); this.focus();
});
}, },
getInput() { getInput() {
return this.$refs.input || this.$refs.textarea; return this.$refs.input || this.$refs.textarea;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment