Skip to content

Commit

Permalink
fix(material-experimental/mdc-button): fix ripple noop animation (#21360
Browse files Browse the repository at this point in the history
)
  • Loading branch information
andrewseguin committed Dec 17, 2020
1 parent 3c37e4b commit c5a111d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/material-experimental/mdc-button/button-base.ts
Expand Up @@ -93,7 +93,10 @@ export const _MatButtonBaseMixin: CanDisableRippleCtor&CanDisableCtor&CanColorCt
export class MatButtonBase extends _MatButtonBaseMixin implements CanDisable, CanColor,
CanDisableRipple {
/** The ripple animation configuration to use for the buttons. */
_rippleAnimation: RippleAnimationConfig = RIPPLE_ANIMATION_CONFIG;
_rippleAnimation: RippleAnimationConfig =
this._animationMode === 'NoopAnimations' ?
{enterDuration: 0, exitDuration: 0} :
RIPPLE_ANIMATION_CONFIG;

/** Whether the ripple is centered on the button. */
_isRippleCentered = false;
Expand Down

0 comments on commit c5a111d

Please sign in to comment.