Skip to content

Commit

Permalink
Merge pull request react-bootstrap#1038 from krzysiek1507/fix_disable…
Browse files Browse the repository at this point in the history
…d_page_item

[fixed] Prevent click on PageItem if disabled
  • Loading branch information
dozoisch committed Jul 28, 2015
2 parents 7720d2c + 74da76a commit 6608e5d
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 6608e5d

Please sign in to comment.