picocss / pico

Minimal CSS Framework for semantic HTML
https://picocss.com
MIT License
13.82k stars 406 forks source link

Dropdown menu not closing after menu button click #385

Closed yhavin closed 9 months ago

yhavin commented 1 year ago

(Not sure if this is a bug or it's intended, in which case I need a feature request.)

Describe the issue

When you have a dropdown menu of buttons (e.g., in a nav see docs here), once you click an option, the dropdown menu isn't closing.

Current Behavior

Currently the dropdown menu of buttons remains open and you have to click away from it to close.

Expected Behavior

I assumed the dropdown menu would close when one of it's options are clicked.

theLomax commented 1 year ago

@yhavin, are you using details or select for your dropdown?