Skip to content

Commit

Permalink
fix: TS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MildTomato committed Feb 12, 2022
1 parent aae004f commit a824594
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Listbox/Listbox2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function Listbox({
// if (borderless) selectClasses.push(SelectStyles['sbui-listbox--borderless'])
if (disabled) selectClasses.push(__styles.disabled)

const triggerRef = useRef(null)
const triggerRef = useRef<HTMLButtonElement>(null)

return (
<FormLayout
Expand All @@ -201,8 +201,9 @@ function Listbox({
size={size}
>
<DropdownMenuPrimitive.Root>
<DropdownMenuPrimitive.Trigger ref={triggerRef} asChild>
<DropdownMenuPrimitive.Trigger asChild>
<button
ref={triggerRef}
className={selectClasses.join(' ')}
onBlur={onBlur}
onFocus={onFocus}
Expand Down

0 comments on commit a824594

Please sign in to comment.