site: fix mouseenter event detection

This commit is contained in:
Lucas Gabriel Vuotto 2025-04-27 19:24:16 +00:00
parent d1cbeea1ac
commit 6250bb9699

View file

@ -79,7 +79,7 @@ document.addEventListener('alpine:init', () => {
currentSuggestionElement(this.currentSuggestion)
?.classList.remove("suggestion-hover");
if (evt === 'mouseenter')
if (evt.type === 'mouseenter')
this.currentSuggestion = suggestionPosition(evt.currentTarget);
else {
const len = this.suggestions.length;