Skip to content

Commit 41ac773

Browse files
authored
fix(material/chips): ripple not disabled when animations are disabled (#20982)
Fixes that the chip fires ripples even if all animations are disabled. Fixes #20981.
1 parent f133210 commit 41ac773

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/material/chips/chip.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ export class MatChip extends _MatChipMixinBase implements FocusableOption, OnDes
171171
* @docs-private
172172
*/
173173
get rippleDisabled(): boolean {
174-
return this.disabled || this.disableRipple || !!this.rippleConfig.disabled;
174+
return this.disabled || this.disableRipple || this._animationsDisabled ||
175+
!!this.rippleConfig.disabled;
175176
}
176177

177178
/** Whether the chip has focus. */

0 commit comments

Comments
 (0)