Fix pagination page-size dropdown showing blank on load
Docker / Docker Build & Push (push) Successful in 4m49s

The select's value was coerced to a string via String(pageSize) while
the <option> values are numbers. Svelte 5 matches a non-bound <select>
value against each option's stored value with Object.is, so "24"
never matched 24 and the dropdown rendered with no option selected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gabriel20xxandClaude Sonnet 5 committed 2026-09-12 16:29:05 +02:00
1 parent 1b05b7ea54
commit f8c05d9e90
1 file changed
+1 -1
@@ -47,7 +47,7 @@
<select <select
class="sc-pagination-page-size" class="sc-pagination-page-size"
aria-label="Items per page" aria-label="Items per page"
value={String(pageSize)} value={pageSize}
onchange={changePageSize} onchange={changePageSize}
> >
{#each PAGE_SIZE_OPTIONS as option} {#each PAGE_SIZE_OPTIONS as option}