if the button is disabled then don't perform its click action if it isn't an input.