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

Cancel non-ancestor popups when showing a new popup #3490

Merged
merged 1 commit into from
Nov 25, 2018

Conversation

hoelzro
Copy link
Contributor

@hoelzro hoelzro commented Oct 19, 2018

Addresses GH #3484

As far as I can tell, the popup level checks in this module are meant to handle nested popups. It seems to me that the goal is for at most a single hierarchy of popups to exist at any given time - bearing that in mind, this change checks any popups currently tracked by the module, canceling any that don't share an element hierarchy with the new popup.

Addresses GH TiddlyWiki#3484

As far as I can tell, the popup level checks in this module are
meant to handle nested popups.  It seems to me that the goal is
for at most a single hierarchy of popups to exist at any given time
- bearing that in mind, this change checks any popups currently tracked
by the module, canceling any that don't share an element hierarchy with
the new popup.
@hoelzro
Copy link
Contributor Author

hoelzro commented Oct 19, 2018

My cursory tests with this change work; I'm going to add this code to my own wiki and see if any bugs fall out over the next few days.

@Jermolene
Copy link
Member

Thanks @hoelzro

@Jermolene Jermolene merged commit 09ea592 into TiddlyWiki:master Nov 25, 2018
@BurningTreeC BurningTreeC mentioned this pull request Nov 25, 2018
BurningTreeC pushed a commit to BurningTreeC/TiddlyWiki5 that referenced this pull request Nov 26, 2018
Jermolene pushed a commit that referenced this pull request Nov 29, 2018
jho1965us pushed a commit to jho1965us/TiddlyWiki5 that referenced this pull request Apr 3, 2019
Addresses GH TiddlyWiki#3484

As far as I can tell, the popup level checks in this module are
meant to handle nested popups.  It seems to me that the goal is
for at most a single hierarchy of popups to exist at any given time
- bearing that in mind, this change checks any popups currently tracked
by the module, canceling any that don't share an element hierarchy with
the new popup.
jho1965us pushed a commit to jho1965us/TiddlyWiki5 that referenced this pull request Apr 3, 2019
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