Skip to content

Commit

Permalink
fix: select: revert update selected option based on defaultValue when…
Browse files Browse the repository at this point in the history
… isLoading (#643)
  • Loading branch information
dkilgore-eightfold authored Jun 14, 2023
1 parent 1dcb82a commit 6a481f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const Select: FC<SelectProps> = React.forwardRef(
opt.selected,
}));
setOptions(updatedOptions);
}, [defaultValue, isLoading]);
}, [defaultValue]);

useEffect(() => {
// When filterable and not multiple if the input value does not match
Expand Down

0 comments on commit 6a481f7

Please sign in to comment.