There are many components in my interface, and each component has their own validations. I want to implement a require like if any validation is triggered, the submit button should be disable. Is there any easy way I can achieve that? Or I can only write all the validations again in disable.
Discussion posts and replies are publicly visible
I do not allow disabling submit buttons in any of my projects. IMHO this just leads to a bad or clunky UX.
I agree! Better to hide the buttons then show it disabled.
Yet I have seen users inclined to see the disabled buttons - to be aware of an action that might enable when certain conditions match rather than forgetting that there can be an action here and is just not visible now.