mirror of https://github.com/ElemeFE/element
Input: fix show password cursor (#20870)
parent
fa64999032
commit
04858017fb
|
@ -403,7 +403,9 @@
|
||||||
},
|
},
|
||||||
handlePasswordVisible() {
|
handlePasswordVisible() {
|
||||||
this.passwordVisible = !this.passwordVisible;
|
this.passwordVisible = !this.passwordVisible;
|
||||||
this.focus();
|
this.$nextTick(() => {
|
||||||
|
this.focus();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getInput() {
|
getInput() {
|
||||||
return this.$refs.input || this.$refs.textarea;
|
return this.$refs.input || this.$refs.textarea;
|
||||||
|
|
Loading…
Reference in New Issue