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
- Go to Course Authoring > Course > Add unit > Add new component.
- Open a course unit.
- Select Add New Component.
- Select Problem.
- When the problem editor opens, click Cancel instead of saving.
- Return to the unit page.
- Check whether the component was created.
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