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:
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user