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

Keep subset menu open when deleting a subset #393

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

kecnry
Copy link
Contributor

@kecnry kecnry commented Aug 22, 2023

Description

This PR prevents the subset menu from closing when clicking on the "delete" icon for a subset, to enable deleting multiple subsets without having to repeatedly re-open the menu manually. This retains the behavior that the menu should close when selecting a subset when multiple selections are disabled.

Calling toggleSubset(index) seems to be necessary in order for internal bookkeeping to remove the entry from the menu (which used to be called via event propagation, but would otherwise be prevented with the @click.stop).

* to allow for deleting multiple subsets
* toggleSubset(index) seems to be necessary in order for internal bookkeeping to remove the entry from the menu (which used to be called via event propagation, but is not prevented with the click.stop)
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (3b264c7) 86.87% compared to head (31fe092) 86.87%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #393   +/-   ##
=======================================
  Coverage   86.87%   86.87%           
=======================================
  Files          89       89           
  Lines        4992     4992           
=======================================
  Hits         4337     4337           
  Misses        655      655           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@astrofrog astrofrog merged commit 54686a1 into glue-viz:main Aug 22, 2023
23 checks passed
@kecnry kecnry deleted the subset-delete-keep-menu-open branch August 23, 2023 00:27
@dhomeier dhomeier added enhancement New feature or request user interface labels Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants