Skip to content

Commit

Permalink
Also ensured an element is deselected when deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
atruskie committed Dec 12, 2013
1 parent f7c82a1 commit d24c0fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/directives/bawAnnotationViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ bawds.directive('bawAnnotationViewer',
scope.model.selectedAudioEvent = changedAnnotation;
}
if (changedAnnotation.toBeDeleted) {
changedAnnotation.selected = false;
scope.model.selectedAudioEvent = null;
}

Expand Down

0 comments on commit d24c0fc

Please sign in to comment.