[bugfix] AddressEdit: area popup should mount in document root (#1211)

This commit is contained in:
neverland 2018-05-31 17:08:29 +08:00 committed by GitHub
parent 49701851f7
commit 3fa49cdd3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@
{{ $t('deleteAddress') }}
</van-button>
</div>
<popup v-model="showArea" position="bottom" :lazy-render="false">
<popup v-model="showArea" position="bottom" :lazy-render="false" :get-container="getAreaContainer">
<van-area
ref="area"
:loading="!areaListLoaded"
@ -295,6 +295,10 @@ export default create({
}
});
});
},
getAreaContainer() {
return document.body;
}
}
});