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

Undo not working in browser devtools inspector #5634

Open
dmarcos opened this issue Jan 22, 2025 · 1 comment
Open

Undo not working in browser devtools inspector #5634

dmarcos opened this issue Jan 22, 2025 · 1 comment

Comments

@dmarcos
Copy link
Member

dmarcos commented Jan 22, 2025

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

@mrxz
Copy link
Contributor

mrxz commented Jan 23, 2025

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants