Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

focus not preserved after keyboard or block select events #1130

Open
djulien opened this issue Apr 28, 2020 · 1 comment
Open

focus not preserved after keyboard or block select events #1130

djulien opened this issue Apr 28, 2020 · 1 comment

Comments

@djulien
Copy link

djulien commented Apr 28, 2020

The block focus is not preserved after keyboard events or if a different block is selected. (This will cause issues with apps that use CSS to highlight the currently focused block).

This is similar to issue#1124, but occurs under several other circumstances.

Steps to reproduce:

  1. display any doc in EditorJS
  2. click or tab to any block, or enter text via keyboard

Expected behavior:
The currently selected block should have a style of "ce-block--focused" but it doesn't.

Device, Browser, OS:
Firefox 75.0, Ubuntu 20.04 (doesn't matter)

Editor.js version:
2.17.0/2.18.0

The fix is to set the focus again after mouse or keyboard events are processed or a new block is selected.

@chapterjason
Copy link

Stil an issue.

Editor.js version:
2.20.0

Screen.Recording.2021-04-13.at.12.31.28.AM.mov

@neSpecc neSpecc added nice to have and removed bug labels Feb 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants