Refactoring: simplify the initialization of UI components for input controls
Fix bug #30576 - disabled input controls are active