1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-06 15:26:34 +02: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

View File

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