Skip to content

Commit

Permalink
Do not select leaderboard item on shift click (#3050)
Browse files Browse the repository at this point in the history
* Do not select leaderboard item on shift click

* Remove unused import
  • Loading branch information
djbarnwal authored Sep 8, 2023
1 parent 9461ca7 commit 304ec73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@
<button
class="flex flex-row w-full text-left transition-color"
on:blur={onLeave}
on:click={() => {
on:click={(e) => {
if (e.shiftKey) return;
dispatch("select-item", {
label,
});
Expand Down

1 comment on commit 304ec73

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.