Skip to content

Drag and drop caret disappears #2036

Closed

Description

@dlgoodchild

Describe the bug
After dragging and dropping a block the caret for input disappears.

To Reproduce
Simply use the demo on the blocknote homepage to reproduce, no other steps or environments necessary.
I was experiencing this in my local project and went looking for examples to see if it was specific to me, but it seems it applies to the examples.

Misc

  • Node version: N/A
  • Package manager: N/A
  • Browser: Firefox 142.0
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Activity

  1. nperez0111 commented on Sep 29, 2025

    @nperez0111
    Contributor

    @dlgoodchild I think I would need a bit more information than what you've provided here, I think that what you want is for the selection to be moved to the block which you've just dropped? It is a little unclear what the behavior should be here, should it be the the start of the block? the end of the block? What if multiple blocks were dragged?

    Notion seems to just select the block which has just been moved, which I guess is a solution to this.

  2. dlgoodchild commented on Sep 29, 2025

    @dlgoodchild
    Author

    OK, do you know the flashing vertical bar that shows where you're current position is when typing? That disappears after you drag and drop any block. If you click then anywhere on text to start typing, you cannot see that vertical bar to know where your position is.

    Try dragging a block, then click somewhere that you'd like to start typing and you'll notice that it's not obvious the position because the flashing vertical bar doesn't show. It's not just about where to auto focus, though that's a good question.

  3. nperez0111 commented on Sep 29, 2025

    @nperez0111
    Contributor

    @dlgoodchild that is what I'm referring to as the "selection", again it is not so simple to determine what it should do as I tried to express with my questions:

    It is a little unclear what the behavior should be here, should it be the the start of the block? the end of the block? What if multiple blocks were dragged?

    Notion's behavior (which I only mention since it is often our reference of UX) is to make the selection be around the block which has just moved, but this would be contrary to what you are looking for (since it would not be a text cursor (i.e. blinking insertion cursor) but instead a block selection (e.g. like a selection around an image).

  4. dlgoodchild commented on Sep 29, 2025

    @dlgoodchild
    Author

    I understand what you're saying, in that after dropping, where to put the selection. I get that, but the issue I'm describing is not precisely that though. Forget the "automatically decide where to put the selection/flashing bar/position" for a moment.

    I drag and drop a block, nothing more.
    I use my mouse and I click a specific position, say within a word, where I would like to type. There is no feedback that where I have clicked is where I'm about to input text, because the flashing vertical bar is not showing. But, if I type, the text appears where I clicked, but it's not obvious to me because the flashing bar is not showing. If I then make a format change, say bold, and then click somewhere, the flashing bar is now showing at the position where I clicked with the mouse pointer.

  5. nperez0111 commented on Sep 29, 2025

    @nperez0111
    Contributor

    Thank you for describing the actual issue. I now see the issue you were referring to, next time a better description & even a screen recording would have made this clearer from the start.

    It is a strange behavior that I don't have an explanation for at the moment, would need to look into it

  6. dlgoodchild commented on Sep 29, 2025

    @dlgoodchild
    Author

    Yep, I see that I never mentioned anything about clicking after dragging and dropping.

  7. hohohin commented on Oct 2, 2025

    @hohohin

    same issue found: custom inline content type get LOST after the block holding it is dragged. Take the official Mention example as an example: the '@Steve' was styled and uneditable at first, but when i drag the block to somewhere else, the '@Steve' change in to plain text with no purple color and it's editable.

    Image
  8. nperez0111 commented on Oct 20, 2025

    @nperez0111
    Contributor

    @hohohin that is a different issue, thanks for making one. I think we will resolve that one with this: #2119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions