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

Allow deselecting topic filters #7791

Merged
merged 2 commits into from
May 26, 2023

Conversation

sophie-macmillan
Copy link
Contributor

@sophie-macmillan sophie-macmillan commented May 23, 2023

What does this change?

Uses the URLSearchParams to remove filter params as well as add them.

Why?

There was a bug where clicking on an already selected topic filter (other than key Events) was not working. This change uses the URLSearchParams to remove the filter param as well as remove them

Video demos

Before After
Could not deselect a filter bug Could deselect a filter fix

@sophie-macmillan sophie-macmillan marked this pull request as ready for review May 23, 2023 17:04
@sophie-macmillan sophie-macmillan requested a review from a team as a code owner May 23, 2023 17:04
Copy link
Contributor

@abeddow91 abeddow91 left a comment

Choose a reason for hiding this comment

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

Good spot!

@sophie-macmillan sophie-macmillan added the run_chromatic Runs chromatic when label is applied label May 24, 2023
@sophie-macmillan sophie-macmillan merged commit cf78326 into main May 26, 2023
@sophie-macmillan sophie-macmillan deleted the sophie-m/fix-deselect-topic-filter-bug branch May 26, 2023 13:24
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotcom-rendering run_chromatic Runs chromatic when label is applied
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants