Skip to content

Commit bbcc364

Browse files
author
basantnema31
committed
fix: resolve bad merge conflict in main.js causing missing event listeners
1 parent cd5545d commit bbcc364

2 files changed

Lines changed: 70 additions & 25 deletions

File tree

package-lock.json

Lines changed: 70 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web-app/js/main.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -886,30 +886,6 @@ document.addEventListener("DOMContentLoaded", function () {
886886
return;
887887
}
888888

889-
resultsList.innerHTML = '';
890-
matches.slice(0, 8).forEach((project, index) => {
891-
const item = document.createElement('button');
892-
item.type = 'button';
893-
item.className = 'dropdown-item' + (index === selectedSuggestionIndex ? ' selected' : '');
894-
item.setAttribute('aria-label', `Select ${project.title}`);
895-
item.innerHTML = `
896-
<div class="dropdown-item-icon">
897-
${project.card.querySelector('.card-icon').textContent}
898-
</div>
899-
<div class="dropdown-item-text">${highlightMatch(project.title, query)}</div>
900-
<span class="dropdown-item-tag">${project.category}</span>
901-
`;
902-
item.addEventListener('click', () => selectSuggestion(project.title));
903-
item.addEventListener('keydown', (e) => {
904-
if (e.key === 'Enter' || e.key === ' ') {
905-
e.preventDefault();
906-
selectSuggestion(project.title);
907-
}
908-
});
909-
item.addEventListener('mouseenter', () => {
910-
selectedSuggestionIndex = index;
911-
updateSuggestionHighlight();
912-
913889
if (noResultsMessage) noResultsMessage.style.display = "none";
914890

915891
if (resultsList) {

0 commit comments

Comments
 (0)