Skip to content

Commit

Permalink
Merge pull request #588 from SamR1/fix-workouts-chart-checkbox
Browse files Browse the repository at this point in the history
Fix click on workout chart checkbox labels
  • Loading branch information
SamR1 authored Jun 29, 2024
2 parents 31cbc2d + 039a761 commit 945a862
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fittrackee/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="/static/css/fork-awesome.min.css"/>
<link rel="stylesheet" href="/static/css/leaflet.css"/>
<title>FitTrackee</title>
<script type="module" crossorigin src="/static/index-BVUtLH4u.js"></script>
<script type="module" crossorigin src="/static/index-CYaoIaEV.js"></script>
<link rel="modulepreload" crossorigin href="/static/charts-BqtLWv2q.js">
<link rel="modulepreload" crossorigin href="/static/maps-BFpqWvfo.js">
<link rel="stylesheet" crossorigin href="/static/css/maps-HupOsEJb.css">
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export const htmlLegendPlugin = {
return
}
const li = document.createElement('li')
li.onclick = () => {
li.onclick = (e) => {
e.preventDefault()
if (item.datasetIndex !== undefined) {
chart.setDatasetVisibility(
item.datasetIndex,
Expand Down

0 comments on commit 945a862

Please sign in to comment.