Skip to content

Commit

Permalink
Fix search box hover behavior replacing input text
Browse files Browse the repository at this point in the history
  • Loading branch information
dubeanant committed Oct 3, 2024
1 parent 256f677 commit 7d28ccf
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -2385,23 +2385,19 @@ class Activity {
that.doSearch();
if (event.keyCode === 13) this.searchWidget.style.visibility = "visible";
},
focus: (event, ui) => {
focus: (event) => {
event.preventDefault();
that.searchWidget.value = ui.item.label;
}
});

$j("#search").autocomplete("widget").addClass("scrollSearch");

$j("#search").autocomplete("instance")._renderItem = (ul, item) => {
return $j("<li></li>")
.data("item.autocomplete", item)
.append(
'<img src="' +
item.artwork +
'" height = "20px">' +
"<a>" +
" " +
'" height="20px">' +
"<a> " +
item.label +
"</a>"
)
Expand Down

0 comments on commit 7d28ccf

Please sign in to comment.