React will interpret the empty string as you adding the attribute. Thus, you need to explicitly tell it to be false disabled={false}. React will then remove the attribute completely. See here: github.com/facebook/react/issues/9230
Thanks for the answer. So that, when i change the button's disabled property using ref, only the is disabled property was changed, but the removed click event will be not added, only when the button will render then only it will be added. Is that what i understood is correct?
Comment by Ronald Roe on "Default disabled button click event is not firing on reactjs" | Hashnode