Skip to content

Commit b9db675

Browse files
fix(search): make entire search result row clickable to create block
1 parent 5a34c5b commit b9db675

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

js/activity.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3181,8 +3181,11 @@ class Activity {
31813181
};
31823182

31833183
// Capture phase fires BEFORE jQuery UI's event delegation
3184-
img.addEventListener("mousedown", down, true);
3185-
img.addEventListener("touchstart", down, { capture: true, passive: false });
3184+
li[0].addEventListener("mousedown", down, true);
3185+
li[0].addEventListener("touchstart", down, {
3186+
capture: true,
3187+
passive: false
3188+
});
31863189

31873190
li.append(img);
31883191
li.append("<a> " + item.label + "</a>");

0 commit comments

Comments
 (0)