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 committed Sep 20, 2024
1 parent fd2aa06 commit 2117f13
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 2117f13

Please sign in to comment.