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) {
193
193
refreshQuickLinks ();
194
194
}
195
195
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 });
198
201
}
199
202
200
203
/**
@@ -260,7 +263,7 @@ const filteredSummary = computed(() => computeSummary(comparisons.value));
260
263
<input
261
264
type =" checkbox"
262
265
:checked =" selfCompareBackend"
263
- @change =" (e) => updateSelfCompareBackend(e.target.checked )"
266
+ @change =" (e) => updateSelfCompareBackend(e.target)"
264
267
/>
265
268
</div >
266
269
<Filters
You can’t perform that action at this time.
0 commit comments