Skip to content

Commit 32f97d6

Browse files
Update dropdown select
1 parent 0257fe1 commit 32f97d6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@undp/design-system-react",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"main": "./dist/index.cjs",
55
"module": "./dist/index.js",
66
"browser": "./dist/index.umd.js",

src/components/ui/select.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function DropdownSelect({
103103
placeholder,
104104
maxTagCount,
105105
isDisabled,
106+
components,
106107
...props
107108
}: SelectPropsDataType): JSX.Element {
108109
return (
@@ -147,10 +148,9 @@ function DropdownSelect({
147148
menuList: () => 'undp-scrollbar pt-0! pb-0!',
148149
...(classNames || {}),
149150
}}
150-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
151-
components={customComponents(maxTagCount, isDisabled) as any}
151+
components={{ ...customComponents(maxTagCount, isDisabled), ...(components || {}) }}
152152
/>
153153
);
154154
}
155155

156-
export { DropdownSelect, createFilter };
156+
export { DropdownSelect, createFilter, components };

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export {
5757
DropdownMenuSubContent,
5858
DropdownMenuSubTrigger,
5959
} from '@/components/ui/dropdown-menu';
60-
export { DropdownSelect, createFilter } from '@/components/ui/select';
60+
export { DropdownSelect, createFilter, components } from '@/components/ui/select';
6161
export { FileUpload } from '@/components/ui/fileUpload';
6262
export {
6363
Footer,

0 commit comments

Comments
 (0)