Fix pagination page-size dropdown showing blank on load
Docker / Docker Build & Push (push) Successful in 4m49s
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:
1 parent
1b05b7ea54
commit
f8c05d9e90
1 file changed
+1
-1
@@ -47,7 +47,7 @@
|
||||
<select
|
||||
class="sc-pagination-page-size"
|
||||
aria-label="Items per page"
|
||||
value={String(pageSize)}
|
||||
value={pageSize}
|
||||
onchange={changePageSize}
|
||||
>
|
||||
{#each PAGE_SIZE_OPTIONS as option}
|
||||
|
||||
Reference in new issue
Block a user