Skip to content

Commit

Permalink
Fix clearing of parent highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Sep 25, 2024
1 parent 69724fe commit 8ed68bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hub/SourceList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,9 @@ export default class SourceList {
y > listRect.bottom
) {
this.DRAG_HIGHLIGHT.hidden = true;
Array.from(this.LIST.children).forEach((element) => {
element.classList.remove("parent-highlight");
});
return;
}

Expand Down Expand Up @@ -703,6 +706,9 @@ export default class SourceList {
this.DRAG_HIGHLIGHT.hidden = false;
} else {
this.DRAG_HIGHLIGHT.hidden = true;
Array.from(this.LIST.children).forEach((element) => {
element.classList.remove("parent-highlight");
});
}
}

Expand Down

0 comments on commit 8ed68bc

Please sign in to comment.