From cd44f1652d255b3060f30267989524b570f933b9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier <contact@jbpasquier.eu> Date: Wed, 6 Mar 2024 18:30:08 +0100 Subject: [PATCH] fix: simplify checkbox behaviour --- src/components/partials/supporting-evidence.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/partials/supporting-evidence.js b/src/components/partials/supporting-evidence.js index dbbeb61..3e9bbb0 100644 --- a/src/components/partials/supporting-evidence.js +++ b/src/components/partials/supporting-evidence.js @@ -122,6 +122,7 @@ importCore().then(core => { } this.requestUpdate(); } + e.preventDefault(); } render() { @@ -191,7 +192,7 @@ importCore().then(core => { filtersRendering.push(html` <div> <label> - <input type="checkbox" .checked="${this.filtering.includes(filter) ?? nothing}"> <span @click="${this.toggle}" value="${filter}">${filter}</span> + <input type="checkbox" ?checked="${this.filtering.includes(filter)}"> <span @click="${this.toggle}" value="${filter}">${filter}</span> </label> </div> `); -- GitLab