Skip to content

Commit

Permalink
Merge pull request #266 from jankalfus/patch-1
Browse files Browse the repository at this point in the history
Added check to respect the disabled prop
  • Loading branch information
xinthink authored Dec 17, 2016
2 parents 66a1628 + 0443644 commit 30c2de8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/mdl/Ripple.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class Ripple extends Component {

// Touch events handling
_onTouchEvent = (evt) => {
if (this.props.disabled === true) {
return;
}

switch (evt.type) {
case 'TOUCH_DOWN':
this._onPointerDown(evt);
Expand Down

0 comments on commit 30c2de8

Please sign in to comment.