Skip to content

Commit

Permalink
closes #1151
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Sep 1, 2020
1 parent 40e98b1 commit d1336ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/components/paper-menu/content/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class PaperMenuContent extends Component {
@action
async animateOut(element) {
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;

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

0 comments on commit d1336ee

Please sign in to comment.