Skip to content

fix(material/core): ripple loader not working in shadow DOM #29015

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
merged 1 commit into from
May 9, 2024

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 8, 2024

Fixes the following issues that prevented the button ripples from being loaded in the shadow DOM:

  • We weren't resolving the event target properly.
  • We were using click as a fallback which happens too late for the very first ripple. These changes switch to mousedown.

Fixes #29011.

Fixes the following issues that prevented the button ripples from being loaded in the shadow DOM:
* We weren't resolving the event target properly.
* We were using `click` as a fallback which happens too late for the very first ripple. These changes switch to `mousedown`.

Fixes angular#29011.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label May 8, 2024
@crisbeto crisbeto requested review from amysorto and mmalerba May 8, 2024 11:49
@crisbeto crisbeto self-assigned this May 8, 2024
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate and removed target: patch This PR is targeted for the next patch release labels May 8, 2024
@crisbeto crisbeto merged commit 7553e1c into angular:main May 9, 2024
crisbeto added a commit that referenced this pull request May 9, 2024
Fixes the following issues that prevented the button ripples from being loaded in the shadow DOM:
* We weren't resolving the event target properly.
* We were using `click` as a fallback which happens too late for the very first ripple. These changes switch to `mousedown`.

Fixes #29011.

(cherry picked from commit 7553e1c)
@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 Jun 9, 2024
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 target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(mat-button): Ripple effect missing when using encapsulation: ShadowDom
2 participants