diff --git a/src/field/index.js b/src/field/index.js index 8084445a7..73db41166 100644 --- a/src/field/index.js +++ b/src/field/index.js @@ -347,6 +347,8 @@ export default createComponent({ onFocus(event) { this.focused = true; this.$emit('focus', event); + // https://github.com/youzan/vant/issues/9715 + this.$nextTick(this.adjustSize); // readonly not work in legacy mobile safari /* istanbul ignore if */ @@ -361,6 +363,7 @@ export default createComponent({ this.updateValue(this.value, 'onBlur'); this.$emit('blur', event); this.validateWithTrigger('onBlur'); + this.$nextTick(this.adjustSize); resetScroll(); },