Fix for #15172.
Implement disabled() and enabled().