Skip to content

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

Merged

Conversation

devversion
Copy link
Member

  • Since the md- prefix is now removed completely, the _matRippleTrigger property is just trigger now.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 19, 2017
@@ -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) {
Copy link
Member

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.

Copy link
Member Author

@devversion devversion Oct 19, 2017

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.

@andrewseguin andrewseguin added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Oct 24, 2017
Copy link
Contributor

@andrewseguin andrewseguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -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) {
Copy link
Member

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)

Copy link
Member Author

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.
@devversion devversion force-pushed the chore/ripple-remove-prefix-check branch from 5e08768 to f9c820a Compare October 25, 2017 13:54
@josephperrott josephperrott merged commit d35436b into angular:master Nov 10, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants