mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix(Stepper): should not emit focus when input is readonly
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user