Skip to content

Commit

Permalink
Merge pull request #18907 from jeclrsg/hpcc-32277-multi-select-async-…
Browse files Browse the repository at this point in the history
…dropdown-onChange

HPCC-32277 ECL Watch v9 fix async multiselect onChange
  • Loading branch information
GordonSmith authored Jul 24, 2024
2 parents 6441315 + ab38ca6 commit 53e54c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp/src/src-react/components/forms/Fields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const AsyncDropdown: React.FunctionComponent<AsyncDropdownProps> = ({
const keys = selectedKey !== "" ? selectedKey.split(valueSeparator) : [];
let items = [...selectedItems];
if (keys.length === items.length) return;
if (selectedKeys !== "" && selOptions.length && selectedKey === "") {
if (selectedKeys !== "" && selOptions.length && selectedKey === "" && selectedKeys === items.map(i => i.key).join("|")) {
setSelectedItems([]);
return;
}
Expand Down

0 comments on commit 53e54c1

Please sign in to comment.