Fix bug where the disabled pseudoclass wouldn't always get applied to buttons correctly.