Skip to content

Require confirmation before deleting elements in manual edit mode #3846

Description

@AmyShang-alt

Summary

Deleting an element from the manual edit popover happens immediately without a second confirmation step.

Current behavior

In manual edit mode, selecting an element opens the style/edit popover with a Delete element action. Clicking Delete element removes the selected element right away.

There is no confirmation dialog, destructive-action prompt, or other guard before the element is deleted.

Expected behavior

Deleting an element should require a second confirmation before the element is removed, especially because this action is destructive and can affect generated design output.

For example:

  • Click Delete element.
  • Show a confirmation prompt such as Delete this element?.
  • Only delete after the user confirms.

Steps to reproduce

  1. Open a generated design artifact in Preview.
  2. Enter manual edit mode.
  3. Select any editable element.
  4. Click Delete element in the edit popover.
  5. Observe that the element is deleted immediately.

Notes

The screenshot shows the Delete element button in the manual edit popover. This is related to destructive edit safety; issue #2866 covers undo behavior after deletion, while this report focuses on the missing pre-delete confirmation.

Why this matters

Users can accidentally remove parts of a design with one click, with no chance to confirm the destructive action before it happens.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions