Skip to content

Commit

Permalink
fix(components/molecule/dropdownOption): fix behaviour when AtomCheck…
Browse files Browse the repository at this point in the history
…box changes state
  • Loading branch information
jordevo committed Mar 28, 2024
1 parent 617e85c commit 9d6b46e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/molecule/dropdownOption/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,15 @@ const MoleculeDropdownOption = forwardRef(
{...Object.fromEntries(Object.entries(props).filter(([key]) => !['className', 'style'].includes(key)))}
>
{checkbox && (
<AtomCheckbox checked={innerSelected} disabled={disabled} onFocus={handleInnerFocus} {...checkboxProps} />
<AtomCheckbox
checked={innerSelected}
disabled={disabled}
onChange={ev => {
onSelect(ev, {value})
}}
onFocus={handleInnerFocus}
{...checkboxProps}
/>
)}
{highlightQuery ? (
renderHighlightOption(highlightValue || children)
Expand Down

0 comments on commit 9d6b46e

Please sign in to comment.