You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On current version of React (15.4.0), in Chrome and Opera, buttons with a click handler and an element inside them (i.e. not only a text node) get their click handler triggered on click when disabled.
Hey @troch, this issue was actually just filed (with the same Codepen) in #8826. See my comment there #8826 (comment). In summary, it was resolved in 15.4.1. Hope that helps!
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
On current version of React (15.4.0), in Chrome and Opera, buttons with a click handler and an element inside them (i.e. not only a text node) get their click handler triggered on click when disabled.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).
http://codepen.io/anon/pen/MJJNpj
What is the expected behavior?
Both buttons should not react to click events.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React (15.4.0), Chrome (v55). Was working in React 15.3.x.
The text was updated successfully, but these errors were encountered: