trigger autocomplete with just

This commit is contained in:
keyan 2023-10-06 18:20:12 -05:00
parent dc1fda64dc
commit 9aa8d8a688
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, setH
const currentSegment = value.substring(priorSpace + 1, nextSpace) const currentSegment = value.substring(priorSpace + 1, nextSpace)
// set the query to the current character segment and note where it appears // set the query to the current character segment and note where it appears
if (/^@[\w_]+$/.test(currentSegment)) { if (/^@[\w_]*$/.test(currentSegment)) {
setMentionQuery(currentSegment) setMentionQuery(currentSegment)
setMentionIndices({ start: priorSpace + 1, end: nextSpace }) setMentionIndices({ start: priorSpace + 1, end: nextSpace })
} else { } else {