Fix modalBox click handler to respect disabled state
Review Request #5816 — Created May 13, 2014 and submitted
The button's click event used to fire in a modalbox and destroy it, even when the button is disabled.
I added a check that the button is enabled before firing the default click event in a modalbox.
1- click the button when it is disabled, the modalbox stays and doesn't get distroyed
2- select a file, click upload button, click event fires normally
SA
- Summary:
-
check button is not disabled before firing click eventFix modalBox click handler to respect disabled state
- Description:
-
~ the button's click event used to fire in a modalbox and destroy it, even when the button is disabled.
~ I added a check that the button is enabled before firing the default click event in a modalbox ~ The button's click event used to fire in a modalbox and destroy it, even when the button is disabled.
~ I added a check that the button is enabled before firing the default click event in a modalbox.