Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When a focussed button becomes disabled, React does not dispatch a blur event.
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/).
- Attach a blur event to a button
- Focus the button
- Make the button disabled or remove it from the DOM
What is the expected behavior?
A blur event will be dispatched.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
15.1.0, not sure if it worked in previous versions.
Isolated test case: http://jsbin.com/fuvite/1/edit?html,css,js,output
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When a focussed button becomes disabled, React does not dispatch a blur event.
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/).
What is the expected behavior?
A blur event will be dispatched.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
15.1.0, not sure if it worked in previous versions.
Isolated test case: http://jsbin.com/fuvite/1/edit?html,css,js,output