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

When closing a popover, leave opened any previously opened popover #15444

Merged
merged 1 commit into from Jan 23, 2020

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jan 23, 2020

While investigating #15404 I discovered that the popover stack "feature" is kind of broken:

When opening popovers (segmented visitor log, visitor profile, ...) it is possible to open a popover from within another one. Those popovers are stored in a popover stack in javascript, to make it possible to open the previous popover if the current one is closed.
That is currently broken. When closing a popover it seems the stack is completely destroyed in any case.

With those changes the behaviour will be:

Clicking outside of the popover: complete stack will be closed
Clicking the close button (x): current popover will be closed, previous will be opened (if any)
Pressing Excape key: complete stack will be closed

Is that expected, or should that be changed some more?

@sgiehl sgiehl added the Needs Review PRs that need a code review label Jan 23, 2020
@sgiehl sgiehl added this to the 4.0.0 milestone Jan 23, 2020
@tsteur tsteur merged commit 45dd3a9 into 4.x-dev Jan 23, 2020
@tsteur tsteur deleted the popoverstack branch January 23, 2020 19:57
@mattab
Copy link
Member

mattab commented Feb 10, 2020

Is that expected, or should that be changed some more?

@sgiehl sounds like it is the ideal behavior now 👍

@mattab mattab changed the title Fix popover stack behaviour When closing a popover, leave opened any previously opened popover Sep 29, 2020
@mattab mattab added the c: Usability For issues that let users achieve a defined goal more effectively or efficiently. label Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants