File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ export type PicklistProps<MultiSelect extends boolean | undefined> = {
173173 tooltip ?: ReactNode ;
174174 tooltipIcon ?: string ;
175175 elementRef ?: Ref < HTMLDivElement > ;
176+ buttonRef ?: Ref < HTMLDivElement > ;
176177 dropdownRef ?: Ref < HTMLDivElement > ;
177178 onValueChange ?: Bivariant <
178179 (
@@ -214,6 +215,7 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
214215 tooltip,
215216 tooltipIcon,
216217 elementRef : elementRef_ ,
218+ buttonRef : buttonRef_ ,
217219 dropdownRef : dropdownRef_ ,
218220 onSelect,
219221 onComplete,
@@ -336,6 +338,7 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
336338 const elRef = useRef < HTMLDivElement | null > ( null ) ;
337339 const elementRef = useMergeRefs ( [ elRef , elementRef_ ] ) ;
338340 const comboboxElRef = useRef < HTMLDivElement | null > ( null ) ;
341+ const buttonRef = useMergeRefs ( [ comboboxElRef , buttonRef_ ] ) ;
339342 const dropdownElRef = useRef < HTMLDivElement | null > ( null ) ;
340343 const dropdownRef = useMergeRefs ( [ dropdownElRef , dropdownRef_ ] ) ;
341344
@@ -559,7 +562,7 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
559562 role = 'none'
560563 >
561564 < div
562- ref = { comboboxElRef }
565+ ref = { buttonRef }
563566 role = 'combobox'
564567 tabIndex = { disabled ? - 1 : 0 }
565568 className = { inputClassNames }
You can’t perform that action at this time.
0 commit comments