Only deselect-outside if there’s a selection

This commit is contained in:
Eric Rosenbaum committed 2019-07-25 14:33:49 -04:00
1 parent 0b9969c412
commit c215104522
1 file changed
+1 -1
+1 -1
View File
@@ -384,7 +384,7 @@ class SoundEditor extends React.Component {
}
handleContainerClick (e) {
// If the click is on the sound editor's div (and not any other element), delesect
if (e.target === this.ref) {
if (e.target === this.ref && this.state.trimStart !== null) {
this.handleUpdateTrim(null, null);
}
}