site: fix mouseenter event detection
This commit is contained in:
parent
d1cbeea1ac
commit
6250bb9699
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue