Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 0a3817c

Browse files
committed
Update Select.tsx
1 parent 5dc8d0e commit 0a3817c

File tree

1 file changed

+2
-4
lines changed
  • packages/core/src/components/common/select

1 file changed

+2
-4
lines changed

packages/core/src/components/common/select/Select.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ const Select = forwardRef(
5959
},
6060
[onOpenChange],
6161
);
62-
const handleButtonClick = useCallback(() => handleOpenChange(!open), [handleOpenChange, open]);
6362

6463
const handleChange = useCallback(
6564
(_event: MouseEvent | KeyboardEvent | FocusEvent | null, selectedValue: number | string) => {
@@ -126,7 +125,6 @@ const Select = forwardRef(
126125
slotProps={{
127126
root: {
128127
ref,
129-
onClick: handleButtonClick,
130128
className: classNames(
131129
`
132130
flex
@@ -162,11 +160,11 @@ const Select = forwardRef(
162160
ring-opacity-5
163161
focus:outline-none
164162
sm:text-sm
165-
z-50
163+
z-[100]
166164
dark:bg-slate-700
167165
dark:shadow-lg
168166
`,
169-
style: { width },
167+
style: { width: ref ? width : 'auto' },
170168
disablePortal: false,
171169
},
172170
}}

0 commit comments

Comments
 (0)