Skip to content

Commit

Permalink
open listbox only if it contains options
Browse files Browse the repository at this point in the history
  • Loading branch information
robinboening committed Jun 21, 2024
1 parent f700dad commit a7dd529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/hotwire_combobox.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@
&:has([role="option"]:not([hidden])) {
border-color: var(--hw-border-color);
}

&:not(:has(.hw-combobox__option)) {
display: none;
}
}

.hw-combobox__group {
Expand Down

0 comments on commit a7dd529

Please sign in to comment.