diff --git a/src/components/multi-select.tsx b/src/components/multi-select.tsx index ee5eeca..068a08b 100644 --- a/src/components/multi-select.tsx +++ b/src/components/multi-select.tsx @@ -142,6 +142,10 @@ export const MultiSelect = React.forwardRef< const [isPopoverOpen, setIsPopoverOpen] = React.useState(false); const [isAnimating, setIsAnimating] = React.useState(false); + React.useEffect(() => { + setSelectedValues(defaultValue); + }, [defaultValue]); + const handleInputKeyDown = ( event: React.KeyboardEvent ) => {