[bugfix] Dialog: overlay incorrect locate when use getContainer (#3041)

This commit is contained in:
neverland
2019-03-22 16:16:35 +08:00
committed by GitHub
parent c1adaebaa6
commit 784b279738
4 changed files with 20 additions and 15 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
import { context } from './context';
import { TouchMixin } from '../touch';
import { on, off } from '../../utils/event';
import { openOverlay, closeOverlay } from './overlay';
import { openOverlay, closeOverlay, updateOverlay } from './overlay';
import { getScrollEventTarget } from '../../utils/scroll';
export const PopupMixin = {
@@ -154,6 +154,10 @@ export const PopupMixin = {
if (container && container !== this.$el.parentNode) {
container.appendChild(this.$el);
}
if (this.overlay) {
updateOverlay();
}
},
onTouchMove(e) {