Preserve selected entity when cancelling save mode

(closes #4407)
This commit is contained in:
Bryan Housel
2017-11-12 12:34:04 -05:00
parent 2f81cd6729
commit 35a9f77a63
3 changed files with 30 additions and 10 deletions
+2 -1
View File
@@ -228,7 +228,8 @@ export function uiCommit(context) {
buttonSection.selectAll('.cancel-button')
.on('click.cancel', function() {
dispatch.call('cancel');
var selectedID = commitChanges.entityID();
dispatch.call('cancel', this, selectedID);
});
buttonSection.selectAll('.save-button')