Skip to content

Commit c215104

Browse files
committed
Only deselect-outside if there’s a selection
1 parent 0b9969c commit c215104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/sound-editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class SoundEditor extends React.Component {
384384
}
385385
handleContainerClick (e) {
386386
// If the click is on the sound editor's div (and not any other element), delesect
387-
if (e.target === this.ref) {
387+
if (e.target === this.ref && this.state.trimStart !== null) {
388388
this.handleUpdateTrim(null, null);
389389
}
390390
}

0 commit comments

Comments
 (0)