Skip to content

Commit

Permalink
Update inputValue when page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Feb 22, 2024
1 parent 0be18b0 commit 109cd24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/Paginator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
let inputValue = page;
$: inputWidth = String(inputValue ?? 0).length;
$: invalidValue = inputValue > totalPages || !inputValue;
$: {
inputValue = page;
}
function previous() {
dispatch("previous", page - 1);
Expand Down

0 comments on commit 109cd24

Please sign in to comment.