fix autonomous open mode

This commit is contained in:
Alan Trebugeais committed 2026-05-07 11:54:46 +02:00
1 parent 13646927bc
commit 75845df825
1 file changed
+2 -2
+2 -2
View File
@@ -309,10 +309,10 @@ export const SourceSelector = React.memo(function SourceSelector({
// In autonomous mode, we might want to start open
useEffect(() => {
if (isAutonomous && !internalOpen) {
if (isAutonomous) {
setInternalOpen(true);
}
}, [isAutonomous, internalOpen]);
}, [isAutonomous]);
const trigger = children ? (
React.isValidElement(children) ? (