Skip to content
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(common): remove load on image once it fails to load #52990

Closed
wants to merge 1 commit into from

Conversation

arturovt
Copy link
Contributor

This commit adds an error listener to image elements and removes both load and error listeners once the image loads or fails to load. The load listener would never have been removed if the image failed to load.

This commit adds an `error` listener to image elements and removes both
`load` and `error` listeners once the image loads or fails to load. The `load`
listener would never have been removed if the image failed to load.
@pullapprove pullapprove bot requested a review from dylhunn November 17, 2023 09:57
@AndrewKushnir
Copy link
Contributor

// cc @atcastle

@AndrewKushnir AndrewKushnir requested review from AndrewKushnir and removed request for dylhunn November 17, 2023 15:58
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer area: common Issues related to APIs in the @angular/common package common: image directive labels Nov 17, 2023
@ngbot ngbot bot added this to the Backlog milestone Nov 17, 2023
@AndrewKushnir AndrewKushnir added the target: patch This PR is targeted for the next patch release label Nov 17, 2023
Copy link
Contributor

@atcastle atcastle left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 17, 2023
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository by commit 29c5416.

AndrewKushnir pushed a commit that referenced this pull request Nov 20, 2023
This commit adds an `error` listener to image elements and removes both
`load` and `error` listeners once the image loads or fails to load. The `load`
listener would never have been removed if the image failed to load.

PR Close #52990
@arturovt arturovt deleted the fix/common-img-load-listener branch November 20, 2023 17:04
tbondwilkinson pushed a commit to tbondwilkinson/angular that referenced this pull request Dec 6, 2023
)

This commit adds an `error` listener to image elements and removes both
`load` and `error` listeners once the image loads or fails to load. The `load`
listener would never have been removed if the image failed to load.

PR Close angular#52990
@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 Dec 26, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
)

This commit adds an `error` listener to image elements and removes both
`load` and `error` listeners once the image loads or fails to load. The `load`
listener would never have been removed if the image failed to load.

PR Close angular#52990
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
)

This commit adds an `error` listener to image elements and removes both
`load` and `error` listeners once the image loads or fails to load. The `load`
listener would never have been removed if the image failed to load.

PR Close angular#52990
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
)

This commit adds an `error` listener to image elements and removes both
`load` and `error` listeners once the image loads or fails to load. The `load`
listener would never have been removed if the image failed to load.

PR Close angular#52990
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: common Issues related to APIs in the @angular/common package common: image directive target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants