Call set("disabled") and set("readOnly") in startup so children are updated appropriately. Added test cases. Fixes #17399.