File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,15 @@ class PaginationList extends Component {
1010 constructor ( props ) {
1111 super ( props ) ;
1212 this . state = {
13- open : this . props . open ,
14- show : this . props . show
13+ open : this . props . open
1514 } ;
1615 }
1716
1817 componentWillReceiveProps ( ) {
1918 const { keepSizePerPageState } = this . props ;
2019 if ( ! keepSizePerPageState ) {
2120 this . setState ( {
22- open : false ,
23- show : false
21+ open : false
2422 } ) ;
2523 }
2624 }
@@ -51,8 +49,7 @@ class PaginationList extends Component {
5149
5250 if ( keepSizePerPageState ) {
5351 this . setState ( {
54- open : false ,
55- show : false
52+ open : false
5653 } ) ;
5754 }
5855
@@ -74,15 +71,13 @@ class PaginationList extends Component {
7471 }
7572 }
7673 this . setState ( {
77- open : false ,
78- show : false
74+ open : false
7975 } ) ;
8076 }
8177
8278 toggleDropDown = ( ) => {
8379 this . setState ( {
84- open : ! this . state . open ,
85- show : ! this . state . show
80+ open : ! this . state . open
8681 } ) ;
8782 }
8883
@@ -162,7 +157,6 @@ class PaginationList extends Component {
162157 if ( sizePerPageDropDown ) {
163158 dropdown = sizePerPageDropDown ( {
164159 open : this . state . open ,
165- show : this . state . show ,
166160 hideSizePerPage,
167161 currSizePerPage : String ( sizePerPage ) ,
168162 sizePerPageList,
@@ -196,7 +190,6 @@ class PaginationList extends Component {
196190 dropdown = (
197191 < SizePerPageDropDown
198192 open = { this . state . open }
199- show = { this . state . show }
200193 hidden = { hideSizePerPage }
201194 currSizePerPage = { String ( sizePerPageText ) }
202195 options = { sizePerPageOptions }
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ class SizePerPageDropDown extends Component {
77 render ( ) {
88 const {
99 open,
10- show,
1110 hidden,
1211 onClick,
1312 options,
@@ -17,13 +16,12 @@ class SizePerPageDropDown extends Component {
1716 currSizePerPage
1817 } = this . props ;
1918
20- const openClass = open ? 'open' : '' ;
21- const showClass = show ? 'show' : '' ;
19+ const openClass = open ? 'open show' : '' ;
2220 const dropDownStyle = { visibility : hidden ? 'hidden' : 'visible' } ;
2321
2422 return (
2523 < span style = { dropDownStyle }
26- className = { `${ variation } ${ openClass } ${ showClass } ${ className } ${ sizePerPageDefaultClass } ` } >
24+ className = { `${ variation } ${ openClass } ${ className } ${ sizePerPageDefaultClass } ` } >
2725 < button className = { `btn ${ btnContextual } dropdown-toggle` }
2826 id = 'pageDropDown' data-toggle = 'dropdown'
2927 aria-expanded = { open }
@@ -54,7 +52,6 @@ SizePerPageDropDown.propTypes = {
5452} ;
5553SizePerPageDropDown . defaultProps = {
5654 open : false ,
57- show : false ,
5855 hidden : false ,
5956 btnContextual : 'btn-default' ,
6057 variation : 'dropdown' ,
You can’t perform that action at this time.
0 commit comments