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