mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[Improvement] AddressEdit: fit in small screen (#1082)
This commit is contained in:
@@ -73,7 +73,11 @@ export default create({
|
||||
onFocus(e) {
|
||||
this.isFocused = true;
|
||||
this.$emit('focus', e);
|
||||
this.$refs.root.scrollIntoView();
|
||||
|
||||
const { root } = this.$refs;
|
||||
if (root && root.scrollIntoView) {
|
||||
root.scrollIntoView();
|
||||
}
|
||||
},
|
||||
|
||||
onBlur(e) {
|
||||
|
Reference in New Issue
Block a user