laptop and a wrench

Bug

The UndoManager class in ArcGIS API for JavaScript 3.x cannot undo an update to a feature after undoing the deletion of the feature.

Last Published: May 23, 2018 ArcGIS API for JavaScript
Bug ID Number BUG-000112701
SubmittedMarch 26, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.23
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

This is by design - since the Editor widget is not being used, you will need to listen to onUndoComplete and onRedoComplete and update the list of operations with the appropriate IDs. The Editor widget does this under the hood similarly to this, _updateUndoRedoOperations: function(event) { if (event && event.addedIds) { var i; for(i = 0; i < undoManager.length; i++) { var operation = undoManager.get(i); if (operation && event.layer === operation._featureLayer) { operation.updateObjectIds(event.oldIds, event.addedIds); } } } } It is important to note that the UndoManager is agnostic to operations. It does not know that a specific operation is for editing or something else.

Steps to Reproduce

Bug ID: BUG-000112701

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options