[Improvement] AddressEdit: fit in small screen (#1082)

This commit is contained in:
neverland
2018-05-16 20:52:18 +08:00
committed by GitHub
parent 42ac659aea
commit 1bae8ab986
9 changed files with 581 additions and 140 deletions

View File

@@ -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) {