fix: bug where '/' prefixed messages without space could not be sent (#898)

This commit is contained in:
Kian Jones
2026-02-10 13:34:47 -08:00
committed by GitHub
parent 927cc601b8
commit bfd9a1ec56

View File

@@ -161,7 +161,7 @@ export function SlashCommandAutocomplete({
// Manually manage active state to include the "no matches" case
useLayoutEffect(() => {
const isActive = matches.length > 0 || showNoMatches;
const isActive = matches.length > 0;
onActiveChange?.(isActive);
}, [matches.length, showNoMatches, onActiveChange]);