@@ -200,7 +200,8 @@ export class JigsawPagination extends AbstractJigsawComponent implements OnInit,
200200 * @internal
201201 */
202202 public _$pagePrev ( ) : void {
203- if ( this . mode == 'simple' ) {
203+ if ( this . mode == 'simple' ) {
204+ if ( this . current == 1 ) return ;
204205 this . current -- ;
205206 } else {
206207 let pageCur = this . _pages . find ( page => page . current == true ) ;
@@ -219,7 +220,8 @@ export class JigsawPagination extends AbstractJigsawComponent implements OnInit,
219220 * @internal
220221 */
221222 public _$pageNext ( ) : void {
222- if ( this . mode == 'simple' ) {
223+ if ( this . mode == 'simple' ) {
224+ if ( this . current == this . _$totalPage ) return ;
223225 this . current ++ ;
224226 } else {
225227 let pageCur = this . _pages . find ( page => page . current == true ) ;
@@ -316,7 +318,7 @@ export class JigsawPagination extends AbstractJigsawComponent implements OnInit,
316318 private _goto ( pageNum ) : void {
317319 pageNum = parseInt ( pageNum ) ;
318320 if ( pageNum <= this . _$totalPage && pageNum >= 1 ) {
319- if ( this . mode != 'simple' ) {
321+ if ( this . mode != 'simple' ) {
320322 this . _pages . find ( page => page . current == true ) . cancelCurrent ( ) ;
321323 this . _pages . find ( page => page . pageNumber == pageNum ) . setCurrent ( ) ;
322324 }
@@ -365,8 +367,8 @@ export class JigsawPagination extends AbstractJigsawComponent implements OnInit,
365367 }
366368
367369 public reset ( ) {
368- if ( ! this . inputs ) return ;
369- this . inputs . forEach ( input => input . value = '' ) ;
370+ if ( ! this . inputs ) return ;
371+ this . inputs . forEach ( input => input . value = '' ) ;
370372 }
371373
372374 ngOnInit ( ) {
0 commit comments