diff --git a/.gitignore b/.gitignore index a81486cfb..6fc2ef2f7 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ /docs/node_modules .npmrc + +.DS_Store diff --git a/src/component/Overlay.ts b/src/component/Overlay.ts index eed315947..88b96f342 100644 --- a/src/component/Overlay.ts +++ b/src/component/Overlay.ts @@ -273,7 +273,10 @@ export default class OverlayImp implements Overlay { } override (overlay: Partial>): void { - this._prevOverlay = clone(this) + this._prevOverlay = clone({ + ...this, + _prevOverlay: null + }) const { id,