Skip to content

Commit

Permalink
grid-js#1248: Fix pagination buttons type
Browse files Browse the repository at this point in the history
  • Loading branch information
rafzei committed Dec 28, 2022
1 parent ddc61d4 commit 77466ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/view/plugin/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export class Pagination extends PluginBaseComponent<
<button
tabIndex={0}
role="button"
type="button"
onClick={this.setPage.bind(this, 0)}
title={this._('pagination.firstPage')}
aria-label={this._('pagination.firstPage')}
Expand All @@ -188,6 +189,7 @@ export class Pagination extends PluginBaseComponent<
<button
tabIndex={0}
role="button"
type="button"
onClick={this.setPage.bind(this, i)}
className={classJoin(
this.state.page === i
Expand Down Expand Up @@ -219,6 +221,7 @@ export class Pagination extends PluginBaseComponent<
<button
tabIndex={0}
role="button"
type="button"
onClick={this.setPage.bind(this, this.pages - 1)}
title={this._('pagination.page', this.pages)}
aria-label={this._('pagination.page', this.pages)}
Expand Down Expand Up @@ -285,6 +288,7 @@ export class Pagination extends PluginBaseComponent<
<button
tabIndex={0}
role="button"
type="button"
disabled={this.state.page === 0}
onClick={this.setPage.bind(this, this.state.page - 1)}
title={this._('pagination.previous')}
Expand All @@ -304,6 +308,7 @@ export class Pagination extends PluginBaseComponent<
<button
tabIndex={0}
role="button"
type="button"
disabled={this.pages === this.state.page + 1 || this.pages === 0}
onClick={this.setPage.bind(this, this.state.page + 1)}
title={this._('pagination.next')}
Expand Down

0 comments on commit 77466ca

Please sign in to comment.