File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
site/frontend/src/pages/compare/compile Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,11 @@ function updateFilter(newFilter: CompileBenchmarkFilter) {
193193 refreshQuickLinks ();
194194}
195195
196- function updateSelfCompareBackend(value : boolean ) {
197- updateFilter ({... filter .value , selfCompareBackend: value });
196+ // We pass the event target here, because Parcel cannot handle the `as`
197+ // cast directly in the template.
198+ function updateSelfCompareBackend(target : EventTarget ) {
199+ const element = target as HTMLInputElement ;
200+ updateFilter ({... filter .value , selfCompareBackend: element .checked });
198201}
199202
200203/**
@@ -260,7 +263,7 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
260263 <input
261264 type =" checkbox"
262265 :checked =" selfCompareBackend"
263- @change =" (e) => updateSelfCompareBackend(e.target.checked )"
266+ @change =" (e) => updateSelfCompareBackend(e.target)"
264267 />
265268 </div >
266269 <Filters
You can’t perform that action at this time.
0 commit comments