Skip to content

Commit

Permalink
Scroll fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindra114 committed Oct 17, 2024
1 parent 3e2754e commit 17fb0c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/select/select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,14 @@ function SelectOptions( {
<div
ref={ refs.setFloating }
className={ cn(
'box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle overflow-y-scroll',
'box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle',
combobox &&
'grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle',
sizeClassNames[ sizeValue ].dropdown,
! combobox && 'h-auto',
! combobox
? 'overflow-y-auto'
: 'overflow-hidden',
className
) }
style={ {
Expand Down

0 comments on commit 17fb0c0

Please sign in to comment.