Skip to content

Commit

Permalink
fix(Select): merge HvOption events (#4483)
Browse files Browse the repository at this point in the history
  • Loading branch information
zettca authored Dec 10, 2024
1 parent 4c5c91a commit 4fb3d16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/Select/Option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export const HvOption = fixedForwardRef(function HvOption<
className={cx(classes.root, className, {
[classes.highlighted]: highlighted,
})}
{...getRootProps()}
{...others}
{...getRootProps(others)}
>
{children}
</HvListItem>
Expand Down
8 changes: 6 additions & 2 deletions packages/core/src/Select/Select.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ describe("Select", () => {
<HvOption value="opt3">Option3</HvOption>
</HvOptionGroup>
<HvOptionGroup label="Group2">
<HvOption value="opt4">Option4</HvOption>
<HvOption value="opt5">Option5</HvOption>
<HvOption value="opt4" onClick={() => {}}>
Option4
</HvOption>
<HvOption value="opt5" onClick={() => {}}>
Option5
</HvOption>
</HvOptionGroup>
</HvSelect>,
);
Expand Down

0 comments on commit 4fb3d16

Please sign in to comment.