From 6250bb96993f022b06b2d9929c6e9e52d6ca1076 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Vuotto Date: Sun, 27 Apr 2025 19:24:16 +0000 Subject: [PATCH] site: fix mouseenter event detection --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index c49a2c9..9e158f7 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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;