Skip to content

fix(core): Account for addEventListener to be passed a Window or Document - #57282

Closed
iteriani wants to merge 3 commits into
angular:mainfrom
iteriani:global
Closed

iteriani wants to merge 3 commits into
angular:mainfrom
iteriani:global

Conversation

@iteriani

@iteriani iteriani commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • [] Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • [xx] No

Other information

@iteriani
iteriani requested a review from thePunderWoman August 6, 2024 21:46
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Aug 6, 2024
@ngbot ngbot Bot added this to the Backlog milestone Aug 6, 2024
@iteriani
iteriani force-pushed the global branch 2 times, most recently from 6988d9d to cb5d425 Compare August 6, 2024 22:24
Comment thread packages/core/src/event_delegation_utils.ts Outdated
Comment thread packages/core/test/event_dispatch/event_dispatch_spec.ts Outdated
Comment thread packages/core/src/event_delegation_utils.ts Outdated
…ment.

This happened to work for other event listeners since both had a
addEventListener method.

@AndrewKushnir AndrewKushnir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@AndrewKushnir AndrewKushnir changed the title bugfix(core): Account for addEventListener to be passed a Window or Document fix(core): Account for addEventListener to be passed a Window or Document Aug 7, 2024
@AndrewKushnir AndrewKushnir added the target: patch This PR is targeted for the next patch release label Aug 7, 2024

@thePunderWoman thePunderWoman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@iteriani iteriani added the action: merge The PR is ready for merge by the caretaker label Aug 7, 2024
@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit 3439cc2.

The changes were merged into the following branches: main, 18.1.x, 18.2.x

AndrewKushnir pushed a commit that referenced this pull request Aug 8, 2024
…ment. (#57282)

This happened to work for other event listeners since both had a
addEventListener method.

PR Close #57282
AndrewKushnir pushed a commit that referenced this pull request Aug 8, 2024
…ment. (#57282)

This happened to work for other event listeners since both had a
addEventListener method.

PR Close #57282
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 8, 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 area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants