Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ This is a set of react components some of which are based on SEB's bootstrap. Th
- The package sourcecode: [Github Source Code](https://github.com/sebgroup/react-components)
- NPM package: [@sebgroup/react-components](https://www.npmjs.com/package/@sebgroup/react-components)

---

#### :rotating_light: NOTICE: `@sebgroup/react-components` support has officially ended as of March 2023.

**What does this mean?**

The code will remain accessible on GitHub and [npm](https://www.npmjs.com/package/@sebgroup/react-components). This website will remain here indefinitely.

The project will be in an archived state, meaning that no new development will be made _unless_:

- it is meant for fixing critical and common-case bugs on the already existing components

**Where do I go from here?**

Go Green! Visit the [official Green documentation](https://sebgroup.github.io/green/latest/chlorophyll) to get started with SEB's new design system.

---

## Minimum requirements

This version of components has been developed with:
Expand Down
5 changes: 4 additions & 1 deletion lib/src/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export type DropdownProps = Omit<JSX.IntrinsicElements["select"], "value"> & {
text?: DropdownText;
/** Indicator for error, warning or success */
indicator?: Indicator;
/** Props for (ul) element */
itemWrapperProps?: JSX.IntrinsicElements["ul"];
};

const bodyScrollOptions: BodyScrollOptions = { reserveScrollBarGap: true };
Expand All @@ -58,7 +60,7 @@ const safeWindow: Window | null = typeof window !== "undefined" ? window : null;
const isMobile: boolean = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(safeWindow?.navigator?.userAgent);

export const Dropdown: React.FC<DropdownProps> = React.forwardRef(
({ wrapperProps = {}, text = {}, onMultipleChange, clearable, indicator, isAllSelectable = true, searchable, selectedLabel, ...props }: DropdownProps, ref) => {
({ wrapperProps = {}, text = {}, onMultipleChange, clearable, indicator, isAllSelectable = true, searchable, selectedLabel, itemWrapperProps, ...props }: DropdownProps, ref) => {
const { multiple, onChange } = props;
const [dropdownId] = React.useState<string>(randomId("dd-"));
const [toggleId] = React.useState<string>(randomId("ddt-"));
Expand Down Expand Up @@ -419,6 +421,7 @@ export const Dropdown: React.FC<DropdownProps> = React.forwardRef(
style={{ ...menuStyle }}
tabIndex={-1}
onKeyDown={onDropDownKeyDown}
{...itemWrapperProps}
>
{searchable && (
<input
Expand Down
Loading