Skip to content

Commit

Permalink
fix #1818
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Dec 22, 2017
1 parent 1741487 commit ea89bf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pagination/SizePerPageDropDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ class SizePerPageDropDown extends Component {
currSizePerPage
} = this.props;

if (hidden) return null;

const openClass = open ? 'open show' : '';
const dropDownStyle = { visibility: hidden ? 'hidden' : 'visible' };

const renderOptions = () => {
const attrs = {
Expand All @@ -33,7 +34,7 @@ class SizePerPageDropDown extends Component {
};

return (
<span style={ dropDownStyle }
<span
className={ `${variation} ${openClass} ${className} ${sizePerPageDefaultClass}` }>
<button className={ `btn ${btnContextual} dropdown-toggle` }
id='pageDropDown' data-toggle='dropdown'
Expand Down

0 comments on commit ea89bf8

Please sign in to comment.