Skip to content

Commit 704cead

Browse files
perf: optimize dragend event listener in options page
Co-authored-by: cmuench <211294+cmuench@users.noreply.github.com>
1 parent c4b570f commit 704cead

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

options/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ const renderGroups = async () => {
275275
dragHandle.addEventListener("dragend", () => {
276276
listItem.classList.remove("dragging");
277277
// Remove drag-over class from all items
278-
document.querySelectorAll(".group-item").forEach(item => {
278+
groupsList.querySelectorAll(".group-item.drag-over").forEach(item => {
279279
item.classList.remove("drag-over");
280280
});
281281
});

0 commit comments

Comments
 (0)