Overview

If you select a component so that you can see it's prop form on the right, and then delete the component, the props form throws an error (which is caught by the Error Boundary).

Proposed resolution

When deleting a component ensure the "selectedComponent" state is unset so we don't try to render the form for a component that no longer exists.

I think it would be nice to, upon deleting a component, set the selectedComponent to be the 'next' component so that you could just repeatedly hit the delete key to delete a whole series of components one after the other.

User interface changes

CommentFileSizeAuthor
2024-10-29 14.44.52.gif1.48 MBjessebaker
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jessebaker created an issue. See original summary.

jessebaker’s picture

Issue summary: View changes

omkar-pd made their first commit to this issue’s fork.

jessebaker’s picture

Status: Active » Fixed

Thanks for the speedy fix. I've raised a follow up feature request #3484570: [Needs design] Automatically select the next component on deleting a component

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.