Validate when the enabled state of a component changes.