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

Showing an auto popover hides all other auto popovers #83

Merged
merged 4 commits into from
Mar 15, 2023

Conversation

keithamus
Copy link
Collaborator

Working through various conditions, I discovered a bug in the existing behaviour. Calling showPopover() on an auto popover should hide all other auto popovers - there should only be one auto popover visible at a time.

I think this is related to #70 but I don't think #70 caused it.

This refactors a large part of the code to abstract the notion of hiding all auto popovers into a single function - and consequently the click handler gets heavily refactored. I've added a test to confirm that showing a auto popover hides others and done a fair amount of manual exploratory testing and I haven't seen this introduce any further regressions.

Steps to test/reproduce

Please explain how to best reproduce the issue and/or test the changes locally (including the pages/URLs/views/states to review).
The tests should explain steps to reproduce.

Show me

Provide screenshots/animated gifs/videos if necessary.

REMEMBER: Attach this PR to the Trello card

@keithamus keithamus changed the title showing auto popover hides all other popovers Showing an auto popover hides all other auto popovers Mar 15, 2023
@keithamus keithamus force-pushed the showing-auto-popover-hides-all-other-popovers branch from 3f4eba9 to 9937623 Compare March 15, 2023 10:49
@keithamus keithamus mentioned this pull request Mar 15, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
src/popover-helpers.ts Outdated Show resolved Hide resolved
Co-authored-by: Jonny Gerig Meyer <jonny@oddbird.net>
src/popover-helpers.ts Outdated Show resolved Hide resolved
@keithamus keithamus merged commit f4ae492 into main Mar 15, 2023
@keithamus keithamus deleted the showing-auto-popover-hides-all-other-popovers branch March 15, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants