Skip to content

No drop indicator appears when dragging a file into an empty post or block list #44064

Open

Description

@talldan

Description

Related #32880, #42365, #42722

Dropping a file does work, but there's no indicator to show that it will work.

This seems to happen because there are no blocks in the post. The 'Type / to choose a block' text is part of a React component called the DefaultBlockAppender, so the usual block drop indicators don't work (and they wouldn't be the right thing to show anyway).

There's also a similar situation when trying to drag a block or a file into an empty group block, so it may be worth coming up with one solution for empty block lists.

Step-by-step reproduction instructions

Empty post

  1. Create a new post
  2. Try dragging a file into the post

Expected: There's some indication on the screen that dropping the file will work

Empty group block

  1. Add a group block
  2. Try dragging another block or image into the group

Expected: There's some indication on the screen that dropping the block will work

Screenshots, screen recording, code snippet

No response

Environment info

  • Brave / Mac OS

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Type] Bug
    [Feature] Drag and Drop
    on Sep 12, 2022
  2. github-actions commented on Oct 13, 2022

    @github-actions
  3. added
    [Status] Stale
    on Oct 13, 2022
  4. removed
    [Status] Stale
    on Oct 13, 2022
  5. Mamaduka commented on May 8, 2025

    @Mamaduka
    Member

    The problem with the Group block has been fixed in recent releases.

  6. added
    [Status] In Progress
    on Nov 20, 2026
  7. yashjawale commented on Nov 20, 2026

    @yashjawale
    Contributor

    Looks like for empty posts, the indicator was only showed when the empty paragraph block is present (created on first click in content area)

    Raised #87133 where the indicator is also shown on the ghost default block that says "Type / to choose a block"

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Drag and Drop[Status] In Progress[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions