ソースを参照

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

Klaudiusz Dembler 3 年 前
コミット
6a25de1648
1 ファイル変更1 行追加1 行削除
  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)};