Skip to content

Commit 5ea9177

Browse files
committed
fix: prevent deactivating the last active search source
1 parent 12f4388 commit 5ea9177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/experimental/Search/SearchController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export class SearchController<
530530
deactivateSource = (sourceType: Sources[number]['type']) => {
531531
const source = this.getSource(sourceType);
532532
if (!source?.isActive) return;
533-
if (this.activeSources.length === 1 && this.config.keepSingleActiveSource) return;
533+
if (this.activeSources.length === 1) return;
534534
source.deactivate();
535535
this.state.partialNext({ sources: [...this.sources] as Sources });
536536
};

0 commit comments

Comments
 (0)