Skip to content

Problem component is created even after clicking Cancel #3101

Description

@mariajgrimaldi

Description

When adding a new Problem component in a unit, clicking Cancel does not prevent the component from being created.

The component still appears in the unit after cancelling the creation/editing flow. This may be expected if the component is created immediately when selected, but the behavior is confusing because Cancel usually implies that the action should be discarded.

I'm opening this issue to confirm whether this is the expected behavior or whether cancelling should remove the newly created component.

Steps to reproduce

  1. Go to Course Authoring > Course > Add unit > Add new component.
  2. Open a course unit.
  3. Select Add New Component.
  4. Select Problem.
  5. When the problem editor opens, click Cancel instead of saving.
  6. Return to the unit page.
  7. Check whether the component was created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions