diff --git a/packages/wonder-blocks-dropdown/src/components/multi-select.tsx b/packages/wonder-blocks-dropdown/src/components/multi-select.tsx index 35903c81a..e393c9530 100644 --- a/packages/wonder-blocks-dropdown/src/components/multi-select.tsx +++ b/packages/wonder-blocks-dropdown/src/components/multi-select.tsx @@ -238,10 +238,7 @@ const MultiSelect = (props: Props) => { const [openerElement, setOpenerElement] = React.useState(); React.useEffect(() => { - /** - * Used to sync the `opened` state when this component acts as a controlled - * component - */ + // Used to sync the `opened` state when this component acts as a controlled component if (disabled) { // open should always be false if select is disabled setOpen(false); diff --git a/packages/wonder-blocks-dropdown/src/components/single-select.tsx b/packages/wonder-blocks-dropdown/src/components/single-select.tsx index 632f5f40f..62f94f367 100644 --- a/packages/wonder-blocks-dropdown/src/components/single-select.tsx +++ b/packages/wonder-blocks-dropdown/src/components/single-select.tsx @@ -251,10 +251,7 @@ const SingleSelect = (props: Props) => { const [openerElement, setOpenerElement] = React.useState(); React.useEffect(() => { - /** - * Used to sync the `opened` state when this component acts as a controlled - * component - */ + // Used to sync the `opened` state when this component acts as a controlled if (disabled) { // open should always be false if select is disabled setOpen(false);