Skip to content

Commit

Permalink
Fix backdrop-bug when using multiple components that have an invisibl…
Browse files Browse the repository at this point in the history
…e background (like paper-menu) see issue adopted-ember-addons#925
  • Loading branch information
ruzz311 committed Mar 21, 2019
1 parent f149dd4 commit dfaa381
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/components/paper-backdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export default Component.extend(TransitionMixin, {
attributeBindings: ['backdropStyle:style'],

// TransitionMixin:
transitionName: 'ng',
transitionName: computed('shouldTransition', function() {
// TransitionMixin is NoOp if transitionName is not given
return this.get('shouldTransition') ? 'ng' : null;
}),
shouldTransition: bool('opaque'),

backdropStyle: computed('fixed', function() {
Expand Down

0 comments on commit dfaa381

Please sign in to comment.