Skip to content

fix(common): remove load on image once it fails to load#52990

Closed
arturovt wants to merge 1 commit intoangular:mainfrom
arturovt:fix/common-img-load-listener
Closed

fix(common): remove load on image once it fails to load#52990
arturovt wants to merge 1 commit intoangular:mainfrom
arturovt:fix/common-img-load-listener

Conversation

@arturovt
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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 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.

4 participants