Skip to content

Commit 1394bcf

Browse files
lucasboillyHichamELBSI
authored andcommitted
fix: add scrollbar to combobox
1 parent 909d3a0 commit 1394bcf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/design-system/src/components/Combobox/Combobox.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { ANIMATIONS } from '../../styles/motion';
1616
import { inputFocusStyle } from '../../themes';
1717
import { Field, useField } from '../Field';
1818
import { Loader } from '../Loader';
19+
import { ScrollArea } from '../../utilities/ScrollArea';
1920

2021
/* -------------------------------------------------------------------------------------------------
2122
* ComboboxInput
@@ -264,6 +265,7 @@ const Combobox = React.forwardRef<ComboboxInputElement, ComboboxProps>(
264265
</Trigger>
265266
<ComboboxPrimitive.Portal>
266267
<Content sideOffset={4}>
268+
<ScrollArea>
267269
<Viewport ref={viewportRef}>
268270
{children}
269271
{creatable ? (
@@ -291,6 +293,7 @@ const Combobox = React.forwardRef<ComboboxInputElement, ComboboxProps>(
291293
) : null}
292294
<Box id={intersectionId} width="100%" height="1px" />
293295
</Viewport>
296+
</ScrollArea>
294297
</Content>
295298
</ComboboxPrimitive.Portal>
296299
</ComboboxPrimitive.Root>

0 commit comments

Comments
 (0)