-
Notifications
You must be signed in to change notification settings - Fork 6.8k
chore(ripple): no longer update if _matRippleTrigger
changes
#7903
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
chore(ripple): no longer update if _matRippleTrigger
changes
#7903
Conversation
@@ -100,7 +100,7 @@ export class MatRipple implements OnChanges, OnDestroy { | |||
} | |||
|
|||
ngOnChanges(changes: SimpleChanges) { | |||
if ((changes['trigger'] || changes['_matRippleTrigger']) && this.trigger) { | |||
if (changes['trigger'] && this.trigger) { |
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.
You should be able to switch this to change.trigger
as well.
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.
Done. As @jelbourn mentioned, the trigger
needs to be a string to avoid closure renaming.
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/core/ripple/ripple.ts
Outdated
@@ -100,7 +100,7 @@ export class MatRipple implements OnChanges, OnDestroy { | |||
} | |||
|
|||
ngOnChanges(changes: SimpleChanges) { | |||
if ((changes['trigger'] || changes['_matRippleTrigger']) && this.trigger) { | |||
if (changes.trigger && this.trigger) { |
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.
trigger
needs to stay as a string or else Closure Compiler might rename it (which we don't want for input names)
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.
Makes sense. Changed it back to be on the safe side.
* Since the `md-` prefix is now removed completely, the `_matRippleTrigger` property is just `trigger` now.
5e08768
to
f9c820a
Compare
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. |
md-
prefix is now removed completely, the_matRippleTrigger
property is justtrigger
now.