Toolbox item keeps hover highlight after selecting a block
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css
- Domain
- frontend
Research direction
The toolbox styles are in the popover CSS, and the stuck highlight comes from the .ce-popover-item:hover rule while the popover is hidden with opacity 0, max-height 0 and pointer-events none. Start by finding where the toolbox popover's hidden state is styled and check how the item hover state behaves after a click. Done means that after clicking an item and reopening the toolbox with the mouse elsewhere, no item shows a hover highlight, verified by reproducing the steps in the demo.
Written by the indexing model from the issue text.
Description
After selecting a block type from the toolbox with the mouse, the clicked item is still highlighted the next time the toolbox is opened. Sometimes several items are highlighted at once.
Steps to reproduce (on the editorjs.io demo):
- Click into an empty line so the „+“ button appears.
- Open the toolbox via „+“ and click a block type with the mouse (e.g. „List“).
- Open the toolbox again via „+“ without moving the mouse over the item list.
Expected: No item is highlighted.
Actual: The previously clicked item is still highlighted. The highlight goes away only once the mouse moves over that specific item.
Note on visibility: With the default hover color the issue is barely visible. For this test I temporarily set a darker background color for .ce-popover-item:hover in the demo to make it obvious. We noticed the bug in our project only after switching to a more prominent hover color.
Possible cause: The popover is hidden with opacity: 0; max-height: 0; pointer-events: none instead of being removed from the layout. Chrome seems to keep the :hover state of items that were under the cursor when the popover closed. No modifier class (e.g. --focused) is left on the item, so the highlight comes from :hover alone.
Screenshot from the editorjs.io demo after inserting a list and reopening the toolbox. The mouse cursor is on the „+“ button, not over the „List“ item.
Environment
Editor.js: current version on editorjs.io as of October 15, 2026
Browser: Chrome Version 155.0.8059.80
OS: macOS
- Dominant language
- TypeScript
- Stars
- 32k
- Forks
- 2.2k
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from codex-team/editor.js
-
Floating Promise Anti-Pattern & Premature Caret in Multi-Block PastePossibly taken @anshurajbisoyi98-ctrl claimed this 14 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
codex-team/editor.js#3032 · 1 comment ·
-
Silent Data Loss & Broken Error Contract in Saver.save()Possibly taken @Sion612 claimed this 24 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
codex-team/editor.js#3030 ·
-
Complete Omission of block.destroy() in Blocks CollectionPossibly taken @Minhal128 claimed this 23 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
codex-team/editor.js#3029 ·
-
Bug: Link cannot be removedPossibly taken @prathmeshyelne claimed this 130 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
codex-team/editor.js#3005 · 1 comment ·
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
codex-team/editor.js#2616 · 1 comment · 1 reaction ·
All issues in codex-team/editor.js
Similar issues
-
area:security documentation effort:S priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
app:web meta:ops
Difficulty 2/5 Half a day Newbie friendliness 78/100
osu-tournament-rating/otr#1113 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
typegoose/mongodb-memory-server#1040 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 92/100