Skip to content

Commit ea89bf8

Browse files
committed
fix #1818
1 parent 1741487 commit ea89bf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pagination/SizePerPageDropDown.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ class SizePerPageDropDown extends Component {
1818
currSizePerPage
1919
} = this.props;
2020

21+
if (hidden) return null;
22+
2123
const openClass = open ? 'open show' : '';
22-
const dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };
2324

2425
const renderOptions = () => {
2526
const attrs = {
@@ -33,7 +34,7 @@ class SizePerPageDropDown extends Component {
3334
};
3435

3536
return (
36-
<span style={ dropDownStyle }
37+
<span
3738
className={ `${variation} ${openClass} ${className} ${sizePerPageDefaultClass}` }>
3839
<button className={ `btn ${btnContextual} dropdown-toggle` }
3940
id='pageDropDown' data-toggle='dropdown'

0 commit comments

Comments
 (0)