1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 18:39:51 +02:00

Fix: Mentions Example (#5191)

This commit is contained in:
GengJun
2022-11-18 01:17:51 +09:00
committed by GitHub
parent 06942c6d7e
commit e139c11235

View File

@@ -31,7 +31,7 @@ const MentionExample = () => {
const onKeyDown = useCallback(
event => {
if (target) {
if (target && chars.length > 0) {
switch (event.key) {
case 'ArrowDown':
event.preventDefault()