trigger autocomplete with just
This commit is contained in:
parent
dc1fda64dc
commit
9aa8d8a688
|
@ -183,7 +183,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, setH
|
|||
const currentSegment = value.substring(priorSpace + 1, nextSpace)
|
||||
|
||||
// set the query to the current character segment and note where it appears
|
||||
if (/^@[\w_]+$/.test(currentSegment)) {
|
||||
if (/^@[\w_]*$/.test(currentSegment)) {
|
||||
setMentionQuery(currentSegment)
|
||||
setMentionIndices({ start: priorSpace + 1, end: nextSpace })
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue