mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-07 07:46:32 +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:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user