Skip to content

Undo not working in browser devtools inspector #5634

Open

Description

@dmarcos

Open chrome dev tools. In the inspector one can click and remove an entity but undo (ctrl/cmd - z) doesn't restore the entity.

Activity

  1. mrxz commented on Jan 23, 2025

    @mrxz
    Contributor

    The dev tools inspector doesn't simply re-introduce the HTML, but actually (re)attaches the original element instance. This isn't supported by A-Frame, see #2425 (and related #4701, #4133, #4316, #4604, #3885).

    While we could try to support a limited form of re-attaching (not re-parenting), that just shifts the problem to dragging not working in browser dev tools. The A-Frame inspector exists for this exact purpose. One option could be to better detect any re-attaching/re-parenting and logging an appropriate error in the console. That way it should at least clue users in that it isn't supported.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions