1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 13:38:37 +01:00

fix(mentions): correct spacer tag position to avoid IME input being interrupted Cannot input chinese directly after the mention in mention demo #3490 (#5013)

This commit is contained in:
pubuzhixing8 2022-06-11 23:09:20 +08:00 committed by GitHub
parent 22308b3417
commit 2b294b30d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,8 +192,7 @@ const Mention = ({ attributes, children, element }) => {
boxShadow: selected && focused ? '0 0 0 2px #B4D5FF' : 'none',
}}
>
@{element.character}
{children}
{children}@{element.character}
</span>
)
}