mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 02:19:52 +02:00
Fix: Mentions Example (#5191)
This commit is contained in:
@@ -31,7 +31,7 @@ const MentionExample = () => {
|
||||
|
||||
const onKeyDown = useCallback(
|
||||
event => {
|
||||
if (target) {
|
||||
if (target && chars.length > 0) {
|
||||
switch (event.key) {
|
||||
case 'ArrowDown':
|
||||
event.preventDefault()
|
||||
|
Reference in New Issue
Block a user