fix(suggestion): set default allowedPrefixes null (#3239)

Co-authored-by: Zoe.L <yang.li06@mihoyo.com>
This commit is contained in:
matrixbirds
2022-09-29 21:20:08 +08:00
committed by GitHub
parent f6c6b67096
commit 04b9da4760

View File

@@ -61,7 +61,7 @@ export function Suggestion<I = any>({
editor, editor,
char = '@', char = '@',
allowSpaces = false, allowSpaces = false,
allowedPrefixes = [' '], allowedPrefixes = null,
startOfLine = false, startOfLine = false,
decorationTag = 'span', decorationTag = 'span',
decorationClass = 'suggestion', decorationClass = 'suggestion',