Skip to content

Commit ae94cd2

Browse files
committed
restore dropdown button ref callback to return undefined
This was over-reverted with 5d137d8
1 parent 5d137d8 commit ae94cd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Dropdown/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export const Dropdown = ({
152152
</div>
153153
<button
154154
onClick={() => handleOptionClick(option)}
155-
ref={(el) => (optionRefs.current[index] = el as HTMLButtonElement)}
155+
ref={(el) => {
156+
optionRefs.current[index] = el as HTMLButtonElement;
157+
}}
156158
onBlur={handleBlur}
157159
>
158160
<span>{option.label}</span>

0 commit comments

Comments
 (0)