@@ -174,7 +174,7 @@ export type PicklistProps<MultiSelect extends boolean | undefined> = {
174
174
tooltip ?: ReactNode ;
175
175
tooltipIcon ?: string ;
176
176
elementRef ?: Ref < HTMLDivElement > ;
177
- buttonRef ?: Ref < HTMLDivElement > ;
177
+ buttonRef ?: Ref < HTMLButtonElement > ;
178
178
dropdownRef ?: Ref < HTMLDivElement > ;
179
179
onValueChange ?: Bivariant <
180
180
(
@@ -338,7 +338,7 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
338
338
339
339
const elRef = useRef < HTMLDivElement | null > ( null ) ;
340
340
const elementRef = useMergeRefs ( [ elRef , elementRef_ ] ) ;
341
- const comboboxElRef = useRef < HTMLDivElement | null > ( null ) ;
341
+ const comboboxElRef = useRef < HTMLButtonElement | null > ( null ) ;
342
342
const buttonRef = useMergeRefs ( [ comboboxElRef , buttonRef_ ] ) ;
343
343
const dropdownElRef = useRef < HTMLDivElement | null > ( null ) ;
344
344
const dropdownRef = useMergeRefs ( [ dropdownElRef , dropdownRef_ ] ) ;
@@ -572,7 +572,8 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
572
572
className = 'slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right'
573
573
role = 'none'
574
574
>
575
- < div
575
+ < button
576
+ type = 'button'
576
577
ref = { buttonRef }
577
578
role = 'combobox'
578
579
tabIndex = { disabled ? - 1 : 0 }
@@ -590,7 +591,7 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
590
591
{ ...rprops }
591
592
>
592
593
< span className = 'slds-truncate' > { selectedItemLabel } </ span >
593
- </ div >
594
+ </ button >
594
595
< Icon
595
596
containerClassName = 'slds-input__icon slds-input__icon_right'
596
597
category = 'utility'
0 commit comments