@@ -825,12 +825,14 @@ window.React["default"] = window.React;
825
825
826
826
_createClass ( Paginator , [ {
827
827
key : 'handlePrevious' ,
828
- value : function handlePrevious ( ) {
828
+ value : function handlePrevious ( e ) {
829
+ e . preventDefault ( ) ;
829
830
this . props . onPageChange ( this . props . currentPage - 1 ) ;
830
831
}
831
832
} , {
832
833
key : 'handleNext' ,
833
834
value : function handleNext ( ) {
835
+ e . preventDefault ( ) ;
834
836
this . props . onPageChange ( this . props . currentPage + 1 ) ;
835
837
}
836
838
} , {
@@ -1282,7 +1284,7 @@ window.React["default"] = window.React;
1282
1284
var firstChild = null ;
1283
1285
1284
1286
if ( this . props . children && this . props . children . length > 0 && this . props . children [ 0 ] . type === _thead . Thead ) {
1285
- fistChild = this . props . children [ 0 ] ;
1287
+ firstChild = this . props . children [ 0 ] ;
1286
1288
} else if ( typeof this . props . children !== 'undefined' && this . props . children . type === _thead . Thead ) {
1287
1289
firstChild = this . props . children ;
1288
1290
}
@@ -1423,17 +1425,17 @@ window.React["default"] = window.React;
1423
1425
1424
1426
( function ( global , factory ) {
1425
1427
if ( typeof define === 'function' && define . amd ) {
1426
- define ( [ 'exports' , 'react' , './reactable/table' , './reactable/tr' , './reactable/td' , './reactable/tfoot' , './reactable/thead' , './reactable/sort' , './reactable/unsafe' ] , factory ) ;
1428
+ define ( [ 'exports' , 'react' , './reactable/table' , './reactable/tr' , './reactable/td' , './reactable/th' , './reactable/ tfoot', './reactable/thead' , './reactable/sort' , './reactable/unsafe' ] , factory ) ;
1427
1429
} else if ( typeof exports !== 'undefined' ) {
1428
- factory ( exports , require ( 'react' ) , require ( './reactable/table' ) , require ( './reactable/tr' ) , require ( './reactable/td' ) , require ( './reactable/tfoot' ) , require ( './reactable/thead' ) , require ( './reactable/sort' ) , require ( './reactable/unsafe' ) ) ;
1430
+ factory ( exports , require ( 'react' ) , require ( './reactable/table' ) , require ( './reactable/tr' ) , require ( './reactable/td' ) , require ( './reactable/th' ) , require ( './reactable/ tfoot') , require ( './reactable/thead' ) , require ( './reactable/sort' ) , require ( './reactable/unsafe' ) ) ;
1429
1431
} else {
1430
1432
var mod = {
1431
1433
exports : { }
1432
1434
} ;
1433
- factory ( mod . exports , global . React , global . table , global . tr , global . td , global . tfoot , global . thead , global . sort , global . unsafe ) ;
1435
+ factory ( mod . exports , global . React , global . table , global . tr , global . td , global . th , global . tfoot , global . thead , global . sort , global . unsafe ) ;
1434
1436
global . reactable = mod . exports ;
1435
1437
}
1436
- } ) ( this , function ( exports , _react , _reactableTable , _reactableTr , _reactableTd , _reactableTfoot , _reactableThead , _reactableSort , _reactableUnsafe ) {
1438
+ } ) ( this , function ( exports , _react , _reactableTable , _reactableTr , _reactableTd , _reactableTh , _reactableTfoot , _reactableThead , _reactableSort , _reactableUnsafe ) {
1437
1439
'use strict' ;
1438
1440
1439
1441
_react [ 'default' ] . Children . children = function ( children ) {
@@ -1472,7 +1474,7 @@ window.React["default"] = window.React;
1472
1474
} ) ;
1473
1475
}
1474
1476
1475
- var Reactable = { Table : _reactableTable . Table , Tr : _reactableTr . Tr , Td : _reactableTd . Td , Tfoot : _reactableTfoot . Tfoot , Thead : _reactableThead . Thead , Sort : _reactableSort . Sort , unsafe : _reactableUnsafe . unsafe } ;
1477
+ var Reactable = { Table : _reactableTable . Table , Tr : _reactableTr . Tr , Td : _reactableTd . Td , Th : _reactableTh . Th , Tfoot : _reactableTfoot . Tfoot , Thead : _reactableThead . Thead , Sort : _reactableSort . Sort , unsafe : _reactableUnsafe . unsafe } ;
1476
1478
1477
1479
exports [ 'default' ] = Reactable ;
1478
1480
0 commit comments