Skip to content

Commit

Permalink
fix(typeaheadCheckboxes): ds-436 Sync state w prop (#476)
Browse files Browse the repository at this point in the history
Relates to JIRA: DISCOVERY-436
  • Loading branch information
nicolearagao authored Oct 17, 2024
1 parent 21d441f commit 30cd594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/typeAheadCheckboxes/typeaheadCheckboxes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const TypeaheadCheckboxes: React.FC<TypeaheadCheckboxesProps> = ({
setSelectOptions(options);
}, [options]);

useEffect(() => {
setSelected(selectedOptions);
}, [selectedOptions]);

useEffect(() => {
let newSelectOptions: SelectOptionProps[] = options;

Expand Down

0 comments on commit 30cd594

Please sign in to comment.