From 74da76a0c143ae1c34b0dec088c6c86c96c45ea1 Mon Sep 17 00:00:00 2001 From: Krzysztof Rybka Date: Wed, 22 Jul 2015 00:54:31 +0200 Subject: [PATCH] [fixed] Prevent click on PageItem if disabled --- src/PageItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PageItem.js b/src/PageItem.js index 44ef5e419c..3da173b37d 100644 --- a/src/PageItem.js +++ b/src/PageItem.js @@ -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) {