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

Prevent modbutton popup in flatview from closing flatview #180

Merged
merged 2 commits into from
Oct 20, 2019

Conversation

k3n
Copy link
Contributor

@k3n k3n commented Oct 20, 2019

Fixes #168.


// 'cancel' button clicked
$popup.on('click', '.close', () => {
$popup.remove();
Copy link
Member

Choose a reason for hiding this comment

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

In jQuery remove() also cleans up all references so setting it to null isn't really needed afaik.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it, a single occurrence in a low-use area shouldn't make a big difference either way.

@creesch creesch merged commit 255241f into toolbox-team:master Oct 20, 2019
@eritbh eritbh added this to the v5.3 milestone Mar 10, 2020
eritbh pushed a commit that referenced this pull request Sep 5, 2024
* Prevent modbutton popup in flatview from closing flatview

* let to const
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.

Closing modbutton popup in flatview closes flatview as well.
3 participants