Skip to content

Commit 74da76a

Browse files
committedJul 21, 2015
[fixed] Prevent click on PageItem if disabled
1 parent 2f96270 commit 74da76a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/PageItem.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const PageItem = React.createClass({
3838
},
3939

4040
handleSelect(e) {
41-
if (this.props.onSelect) {
41+
if (this.props.onSelect || this.props.disabled) {
4242
e.preventDefault();
4343

4444
if (!this.props.disabled) {

0 commit comments

Comments
 (0)
Please sign in to comment.