Skip to content

Toolbar can render outside of the EditorJS component #2872

@ebrine

Description

@ebrine

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

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions