codex-team / codex-team/editor.js

iOS: "remove" backward text on an empty block loses focus and closes keyboard

Open
#2,416 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

On iOS, when on an empty block, when you press the "remove" (backward) key to delete the previous text, it deletes the current block (OK), but instead of moving the focus to the previous block and keeping the keyboard open, it closes the keyboard and the focus is not visible anymore.

**Steps to reproduce:**
1. Go to the online demo: instead of going to previous
2. Type some text on a block, create a second text block (empty).
3. Tap the "remove" key. The focus is lost and the keyboard closed

**Expected behavior:** The focus is moved to the end of the previous block and the keyboard remains open.

**Device, Browser, OS:** iPhone 14, Safari 16.5 (browserstack)

**Editor.js version:** 2.27.2

**Plugins you use with their versions:** Online demo as well as my own EditorJS.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.