Skip to content

Commit

Permalink
default to ember-basic-dropdown-wormhole parent on PaperMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Sep 16, 2020
1 parent fd0c148 commit 9ab6fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/components/paper-menu/content/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class PaperMenuContent extends Component {
let parentElement = this.renderInPlace ? element.parentElement.parentElement : element.parentElement;

// workaround for https://github.com/miguelcobain/ember-paper/issues/1151. See also https://github.com/emberjs/ember.js/issues/18795.
if (!parentElement) return;
if (!parentElement) {
parentElement = document.getElementById('ember-basic-dropdown-wormhole');
}

let clone = element.cloneNode(true);
clone.id = `${clone.id}--clone`;
Expand Down

0 comments on commit 9ab6fd6

Please sign in to comment.