The UndoManager class in ArcGIS API for JavaScript 3.x cannot undo an update to a feature after undoing the deletion of the feature.
上次发布: May 23, 2018ArcGIS API for JavaScript
漏洞 ID 编号
BUG-000112701
已提交
March 26, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS API for JavaScript
找到的版本
3.23
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
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.