Skip to content

Commit

Permalink
Do not select leaderboard item on shift click
Browse files Browse the repository at this point in the history
  • Loading branch information
djbarnwal committed Sep 8, 2023
1 parent ca2fc7b commit 9ca4a17
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
LeaderboardItemData,
getFormatterValueForPercDiff,
} from "./leaderboard-utils";
import ShiftKey from "@rilldata/web-common/components/tooltip/ShiftKey.svelte";

Check failure on line 29 in web-common/src/features/dashboards/leaderboard/LeaderboardListItem.svelte

View workflow job for this annotation

GitHub Actions / build

'ShiftKey' is defined but never used
export let itemData: LeaderboardItemData;
$: label = itemData.label;
Expand Down Expand Up @@ -120,7 +121,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

0 comments on commit 9ca4a17

Please sign in to comment.