Skip to content

Commit

Permalink
IBX-7802: Fix React multi-select dropdown checkbox lack of onChange p…
Browse files Browse the repository at this point in the history
…rop error (#1180)
  • Loading branch information
tischsoic authored Feb 21, 2024
1 parent f194967 commit ce8ad56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bundle/ui-dev/src/modules/common/dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ const Dropdown = ({
}
}}
>
{!single && <input type="checkbox" className="ibexa-input ibexa-input--checkbox" checked={isItemSelected} />}
{!single && (
<input type="checkbox" className="ibexa-input ibexa-input--checkbox" checked={isItemSelected} onChange={() => {}} />
)}
<span className="ibexa-dropdown__item-label">{item.label}</span>
{single && (
<div className="ibexa-dropdown__item-check">
Expand Down Expand Up @@ -165,7 +167,7 @@ const Dropdown = ({
};
const renderSelectedMultipleItem = (item) => {
return (
<li className="ibexa-dropdown__selected-item">
<li key={item.value} className="ibexa-dropdown__selected-item">
{item.label}
<span className="ibexa-dropdown__remove-selection" onClick={() => onChange(item.value)} />
</li>
Expand Down

0 comments on commit ce8ad56

Please sign in to comment.