-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(chips): disable all animations when using NoopAnimationsModule #11546
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/lib/chips/chip.ts
Outdated
@@ -231,18 +239,23 @@ export class MatChip extends _MatChipMixinBase implements FocusableOption, OnDes | |||
terminateOnPointerUp: globalOptions.terminateOnPointerUp, | |||
}; | |||
} | |||
|
|||
if (this._animationsDisabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be necessary since these animations should automatically run in 0
time a NoopAnimationsModule
environment correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The RippleRenderer
doesn't have access to the ANIMATION_MODULE_TYPE
so we have to disable it from here.
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
59dd848
to
fc58823
Compare
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
fc58823
to
79dec72
Compare
79dec72
to
ef1b161
Compare
c9d55d3
to
5eb584b
Compare
5eb584b
to
bb2df4d
Compare
Disables all of the chip animations and transitions when the consumer is using the `NoopAnimationsModule`. Also cleans up some repetitive code. Relates to angular#10590.
bb2df4d
to
d167f0d
Compare
…ngular#11546) Disables all of the chip animations and transitions when the consumer is using the `NoopAnimationsModule`. Also cleans up some repetitive code. Relates to angular#10590.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Disables all of the chip animations and transitions when the consumer is using the
NoopAnimationsModule
. Also cleans up some repetitive code.Relates to #10590.