Skip to content

Commit

Permalink
add _isDialogMixin variable to check for in form
Browse files Browse the repository at this point in the history
  • Loading branch information
margaree committed Sep 24, 2024
1 parent f11e755 commit 03bcce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/dialog/dialog-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
this._handleDropdownOpenClose = this._handleDropdownOpenClose.bind(this);
this._handleMvcDialogOpen = this._handleMvcDialogOpen.bind(this);
this._inIframe = false;
this._isDialogMixin = true;
this._isFullHeight = false;
this._height = 0;
this._left = 0;
Expand Down
2 changes: 1 addition & 1 deletion components/form/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Form extends FormMixin(LitElement) {

const dialogAncestor = findComposedAncestor(
this,
(node) => { return (node?.tagName?.includes('D2L-DIALOG')); }
(node) => { return (node?._isDialogMixin); }
);
if (!dialogAncestor) return;

Expand Down

0 comments on commit 03bcce6

Please sign in to comment.