Skip to content

Commit

Permalink
[fixed] Prevent click on PageItem if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysiek1507 committed Jul 21, 2015
1 parent 2f96270 commit 74da76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const PageItem = React.createClass({
},

handleSelect(e) {
if (this.props.onSelect) {
if (this.props.onSelect || this.props.disabled) {
e.preventDefault();

if (!this.props.disabled) {
Expand Down

0 comments on commit 74da76a

Please sign in to comment.