mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Field): should not trigger validation after blurring readonly input (#9863)
This commit is contained in:
parent
35fa1e9a1d
commit
3bd5284812
@ -352,13 +352,16 @@ export default createComponent({
|
||||
|
||||
// readonly not work in legacy mobile safari
|
||||
/* istanbul ignore if */
|
||||
const readonly = this.getProp('readonly');
|
||||
if (readonly) {
|
||||
if (this.getProp('readonly')) {
|
||||
this.blur();
|
||||
}
|
||||
},
|
||||
|
||||
onBlur(event) {
|
||||
if (this.getProp('readonly')) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.focused = false;
|
||||
this.updateValue(this.value, 'onBlur');
|
||||
this.$emit('blur', event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user