activate collection tree row only if it's focused (#3431)

Fixes: #3426
This commit is contained in:
abaevbog 2023-09-24 05:34:00 -04:00 committed by GitHub
parent 79ef266f2f
commit bbfc6ed817
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ var CollectionTree = class CollectionTree extends LibraryTree {
handleActivate = (event, indices) => {
let index = indices[0];
let treeRow = this.getRow(index);
if (treeRow.isCollection() && this.editable) {
if (treeRow.isCollection() && this.editable && this.selection.focused == index) {
this._editing = treeRow;
treeRow.editingName = treeRow.ref.name;
this.tree.invalidateRow(index);