Only deselect-outside if there’s a selection
This commit is contained in:
1 parent
0b9969c412
commit
c215104522
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user