Fixed #589 for undo/redo and duplicate actions too

This commit is contained in:
jos 2018-10-29 20:28:27 +01:00
parent 67ef58bef3
commit d0b49fbf12
2 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@ https://github.com/josdejong/jsoneditor
- Fixed #590: validation failing in code and text mode when status - Fixed #590: validation failing in code and text mode when status
bar is disabled. bar is disabled.
- Fixed #589: the path in the navigation bar is not updated - Fixed #589: the path in the navigation bar is not updated
when deleting a node. when duplicating or removing a node, and neither after an undo/redo action.
- Fixed duplicate and remove of the action menu of multiple selected - Fixed duplicate and remove of the action menu of multiple selected
nodes not working. nodes not working.
- Fixed not preventing default selection of text when selecting nodes. - Fixed not preventing default selection of text when selecting nodes.

View File

@ -500,6 +500,9 @@ treemode._onChange = function () {
return; return;
} }
// selection can be changed after undo/redo
this.selection = this.getDomSelection();
// validate JSON schema (if configured) // validate JSON schema (if configured)
this._debouncedValidate(); this._debouncedValidate();