Skip to content

Commit

Permalink
SelectDropdown: hide the dropdown options when the dropdown is closed
Browse files Browse the repository at this point in the history
Otherwise, the options element is clickable although it has `visibility: hidden`
and captures clicks on controls that are underneath it.
  • Loading branch information
jsnajdr committed Aug 16, 2019
1 parent dd17c67 commit c9b3c11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/components/select-dropdown/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ $compact-header-height: 35;

.select-dropdown {
height: #{$header-height}px;
overflow: hidden;

&.is-open {
overflow: visible;
}

&.is-compact {
height: #{$compact-header-height}px;
Expand Down

0 comments on commit c9b3c11

Please sign in to comment.