Fixes #6242: Can't disable the button immediately after the reset.

Fixes #6242 - triggering a custom event to allow user to catch the moment when the button state is completely changed.