Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Once the block are dragged the caret set position to the next block above. #161

Open
3 tasks
elainegasca opened this issue Mar 24, 2025 · 0 comments
Open
3 tasks
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking

Comments

@elainegasca
Copy link

elainegasca commented Mar 24, 2025

Precheck

  • Do a quick search and make sure the bug has not been reported yet.
  • Please disclose security vulnerabilities privately at oss@kommit.co.
  • Finally, be nice and have fun!.

Description

I'm not so sure if this should be the correct behavior but once you drag a block the cared position automatically are positioned on the next block closer instead the dragged block.

Environment

  • Editor.js version: 2.30.8
  • Plugins you use with their versions: editorjs-drag-drop 1.1.16
  • Device, Browser, OS: Macbook, chrome Version 131.0.6778.205 (Official Build) (arm64), 13.5 (22G74)

Current behavior

[
](https://imgur.com/a/riJqewt)

As shown in the video when I dropped paragraph 4 instead of the paragraph 4 keep focus this changes to paragraph 2.

Expected behavior

I would think the correct behavior might be keep the focus in the arranged block instead change to upper
block or below block.

Additional context

Already I did a fix to this but I have no rights to push it into a new branch. I'm not so sure if this might be a issue related with this plugin, because this could be "normal" behavior of the block API "move" method (https://editorjs.io/blocks/#move), but I think its a little weird the current behavior.

@elainegasca elainegasca added ⛑ Needs triage Someone is checking 🐞 Bug Something isn't working labels Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working ⛑ Needs triage Someone is checking
Projects
None yet
Development

No branches or pull requests

1 participant