-
Notifications
You must be signed in to change notification settings - Fork 162
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
Deselecting a single strain doesn't remove the info panel overlay #1243
Comments
@jameshadfield I started looking into this. I'm a bit confused about the different trees. This is what I've gathered:
And respectively,
I can't figure out how to get to the |
Notes after a call between Jover / Victor / Jennifer earlier this week
|
This implements what we think is an intuitive UI, and also helps with the bug described in #1243 where removing/disabling a strain-filter results in the tree visualisation falling out-of-sync with the modal. Note that `event.key` may not be implemented in all browsers, however this functionality is a nicety rather than a must-have, so this is tolerable. Thanks to @joverlee521 for suggesting to use this instead of `event.keyCode` during PR review. See #1479 for context. Closes #1479
Clicking a tip brings up a modal and activates the corresponding strain filter. Inactivating or removing this filter now also clears the modal. Closes #1243
Current Behavior
With new filters behavior (implemented in #1200) clicking on a single tip in the tree adds this single tip as a "filter" and covers tree with gray info panel overlay, like so:
This behavior is as intended. Once in this state you can click outside the overlay panel and both the overlay panel and the strain filter will be dismissed. This is also as intended.
However, if you click on the trash can icon to remove the filter you're left with the full tree displayed but the overlay panel remains. It takes a second click outside the panel to dismiss it.
Expected behavior
Instead of this behavior, clicking the trash can icon should remove both strain filter and the overlay panel.
The text was updated successfully, but these errors were encountered: