Skip to content

Commit

Permalink
Change la suggestion de mention active au survol
Browse files Browse the repository at this point in the history
...ce fonctionnement se rapproche beaucoup de celui de Discord
  • Loading branch information
fbezagu authored and Nephtys committed Sep 20, 2024
1 parent e97b200 commit 88d78cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions svelte/lib/mesure/commentaire/ListeSuggestionsMention.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
return false;
}
const survol = (index: number) => {
activeIdx = index;
};
</script>

<ul>
Expand All @@ -42,6 +46,8 @@
on:keypress
role="button"
tabindex="0"
on:mouseover={() => survol(i)}
on:focus
>
<Initiales
valeur={contributeur.initiales}
Expand Down

0 comments on commit 88d78cc

Please sign in to comment.