From 8ed68bca90d301a1cf22a66bcc3e6c9c0b0179e3 Mon Sep 17 00:00:00 2001 From: Jonah <47046556+jwbonner@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:59:30 -0400 Subject: [PATCH] Fix clearing of parent highlights --- src/hub/SourceList.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hub/SourceList.ts b/src/hub/SourceList.ts index 6f3b7c11..6045deb0 100644 --- a/src/hub/SourceList.ts +++ b/src/hub/SourceList.ts @@ -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; } @@ -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"); + }); } }