WHOIGit / ifcbdb

IFCB dashboard
MIT License
8 stars 9 forks source link

Dismiss menus by cilcking anywhere #389

Closed joefutrelle closed 3 months ago

joefutrelle commented 4 months ago

When you click any of the top buttons on the webpage (such as dataset or filter) you have to click that button specifically again to make it go away. You can't just click anywhere on the page.

mike-kaimika commented 3 months ago

Here's a PR to take care of that: https://github.com/WHOIGit/ifcbdb/pull/391

mike-kaimika commented 3 months ago

I realized after I committed the code that its technically possible to have two popovers up at once (datasets and filters) and clicking between them will keep both open. Let me know if we should add additional logic to pinpoint the specific popover you're clicking around on. I think those two being open would be the only time that could occur.