fix(Stepper): should not emit focus when input is readonly

This commit is contained in:
chenjiahan
2020-05-09 10:12:34 +08:00
parent 7327a481d1
commit c6024b18b4
2 changed files with 12 additions and 7 deletions

View File

@@ -209,11 +209,11 @@ export default createComponent({
},
onFocus(event) {
this.$emit('focus', event);
// readonly not work in lagacy mobile safari
if (this.disableInput && this.$refs.input) {
this.$refs.input.blur();
} else {
this.$emit('focus', event);
}
},