Correctly apply the "disabled" attribute to input unit fields (see #7147)