codex-team / codex-team/editor.js

Toolbar can render outside of the EditorJS component

Open
#2,872 5 comments 3 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

Describe a bug.

Steps to reproduce:
It doesn't happen to me everytime, but sometimes when I use my implementation of EditorJS and I hover over the Editor JS component region just as it's loading, the toolbar renders with a negative `top` value, so it's way above the first component block.

Expected behavior:

I would expect that the toolbar always appears next to the content block hovered, or not at all.
I think that means that the `top` value should only be allowed to be `0px` at minimum.

Screenshots:

[Screenshot 2024-11-15 at 11 25 29 AM](url)

Screenshot 2024-11-15 at 11 28 28 AM

Device, Browser, OS:
Macbook Pro
Chrome
14.6.1

Editor.js version:

`"@editorjs/editorjs": "^2.30.6",`

Plugins you use with their versions:

```
"@editorjs/header": "^2.8.7",
"@editorjs/image": "^2.9.0",
"@editorjs/paragraph": "^2.11.5",
"@editorjs/underline": "^1.1.0",
```

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.