Browse Source

remove scrollbar from select menu when not needed (#1146)

Klaudiusz Dembler 3 years ago
parent
commit
6a25de1648
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/shared/components/Select/Select.style.ts

+ 1 - 1
src/shared/components/Select/Select.style.ts

@@ -44,7 +44,7 @@ export const SelectMenu = styled.ul<SelectMenuProps>`
   width: 100%;
   max-height: 300px;
   position: absolute;
-  overflow-y: scroll;
+  overflow-y: auto;
   z-index: 1;
   padding: 0;
   margin-top: ${({ isOpen }) => (isOpen ? sizes(1) : 0)};