A name editor lets the user rename items in a list and undo the last change. Renaming works correctly — the new name appears immediately. Clicking Undo should restore the previous name but instead the name stays as the edited version.
Click Edit on any item, type a new name, click Save — the name updates correctly. Click Undo — the name does not revert. The original name is gone.
When you save a snapshot to history before editing, check whether you are saving a copy of the data or a reference to the same objects. If the history and the current list share the same object references, editing one edits both.
When you save a snapshot to history before editing, check whether you are saving a copy of the data or a reference to the same objects. If the history and the current list share the same object references, editing one edits both.