feat(Popup): add close-on-popstate prop (#4845)

This commit is contained in:
neverland
2019-10-26 15:31:45 +08:00
committed by GitHub
parent 44c9801811
commit 9033a968ec
5 changed files with 6 additions and 4 deletions
+2
View File
@@ -1,6 +1,7 @@
import { context } from './context';
import { TouchMixin } from '../touch';
import { PortalMixin } from '../portal';
import { CloseOnPopstateMixin } from '../close-on-popstate';
import { on, off, preventDefault } from '../../utils/dom/event';
import { openOverlay, closeOverlay, updateOverlay } from './overlay';
import { getScrollEventTarget } from '../../utils/dom/scroll';
@@ -8,6 +9,7 @@ import { getScrollEventTarget } from '../../utils/dom/scroll';
export const PopupMixin = {
mixins: [
TouchMixin,
CloseOnPopstateMixin,
PortalMixin({
afterPortal() {
if (this.overlay) {