Skip to content

Editing a Todo Triggers Reset after Save & Unexpected State #8

@perzeuss

Description

@perzeuss

Describe the bug
When editing a todo item, clicking the 'Save' button does not store the changes. Instead, the todo item immediately re-enters edit mode with the original, unchanged value.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Todo app and add a todo item.
  2. Click the 'Edit' button for any todo.
  3. Change the todo text in the input field.
  4. Click the 'Save' button (do not press Enter).
  5. Observe that:
    • The updated value is not saved.
    • The item instantly re-enters edit mode with the original text.

Expected behavior

  • Clicking 'Save' should update the todo with the new text, exit edit mode, and display the updated value.
  • Edit mode should not immediately reopen unless manually triggered by the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions