fix: bug where '/' prefixed messages without space could not be sent (#898)
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user