bugfix/disable-paginator-numeric-row (#2269)

This commit is contained in:
Mahmoud Zino
2023-11-29 18:58:03 +01:00
committed by GitHub
parent 23683dbece
commit d65b1ca809
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@skeletonlabs/skeleton": patch
---
bugfix: Numeric row is now disabled when using the prop `disabled` on the Paginator.

View File

@@ -227,7 +227,7 @@
{:else}
<!-- Numeric Row -->
{#each controlPages as page}
<button type="button" class="{buttonClasses} {classesButtonActive(page)}" on:click={() => gotoPage(page)}>
<button type="button" {disabled} class="{buttonClasses} {classesButtonActive(page)}" on:click={() => gotoPage(page)}>
{page >= 0 ? page + 1 : '...'}
</button>
{/each}