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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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