Skip to content

Remove duplicate banner:close event#15489

Merged
cemms1 merged 1 commit intomainfrom
cemms1/remove-duplicate-close-event
Mar 5, 2026
Merged

Remove duplicate banner:close event#15489
cemms1 merged 1 commit intomainfrom
cemms1/remove-duplicate-close-event

Conversation

@cemms1
Copy link
Contributor

@cemms1 cemms1 commented Mar 5, 2026

What does this change?

Removes the banner:close event from useDesignableBannerModel as this seems to already be covered in withCloseable

Why?

There are two banner:close events:

When closing the reader revenue banner, the event fires twice. We don't want this behaviour ideally.

This PR addresses this so that only one event is fired when closing the reader revenue banner

Screenshots

The event listener is added when the reader revenue banner appears on the page view. The banner is dismissed and the console logs demonstrate the effect of this in the following screenshots:

Before After
before after

@cemms1 cemms1 marked this pull request as ready for review March 5, 2026 16:21
@cemms1 cemms1 requested a review from a team as a code owner March 5, 2026 16:21
@cemms1 cemms1 added run_chromatic Runs chromatic when label is applied fix Departmental tracking: fix labels Mar 5, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Mar 5, 2026
Copy link
Contributor

@AnastasiiaBalenko AnastasiiaBalenko left a comment

Choose a reason for hiding this comment

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

👍 Thanks for spotting it!

@cemms1 cemms1 merged commit debe3c0 into main Mar 5, 2026
37 checks passed
@cemms1 cemms1 deleted the cemms1/remove-duplicate-close-event branch March 5, 2026 16:37
@gu-prout
Copy link

gu-prout bot commented Mar 5, 2026

Overdue on PROD (merged by @cemms1 30 minutes and 8 seconds ago) What's gone wrong?

@gu-prout
Copy link

gu-prout bot commented Mar 5, 2026

Seen on PROD (merged by @cemms1 52 minutes and 32 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants