From b05603124a2f4fc9630aad8e30daec2469e47774 Mon Sep 17 00:00:00 2001 From: Enrique Mingorance Cano Date: Tue, 10 Feb 2026 15:37:57 +0100 Subject: [PATCH 1/2] isScrollable added to every PfSelect from react-form-wizards components Signed-off-by: Enrique Mingorance Cano --- .../packages/react-form-wizard/src/inputs/WizAsyncSelect.tsx | 1 + .../packages/react-form-wizard/src/inputs/WizMultiSelect.tsx | 1 + frontend/packages/react-form-wizard/src/inputs/WizSelect.tsx | 1 + .../packages/react-form-wizard/src/inputs/WizSingleSelect.tsx | 1 + 4 files changed, 4 insertions(+) diff --git a/frontend/packages/react-form-wizard/src/inputs/WizAsyncSelect.tsx b/frontend/packages/react-form-wizard/src/inputs/WizAsyncSelect.tsx index dc69f175a97..9c036f05433 100644 --- a/frontend/packages/react-form-wizard/src/inputs/WizAsyncSelect.tsx +++ b/frontend/packages/react-form-wizard/src/inputs/WizAsyncSelect.tsx @@ -127,6 +127,7 @@ export function WizAsyncSelect(props: WizAsyncSelectProps) { selected={value} onSelect={(_event, value) => onSelect(value?.toString() ?? '')} shouldFocusFirstItemOnOpen={false} + isScrollable > onSelect(value?.toString() ?? '')} + isScrollable > (props: SelectProps) { popperProps={{ appendTo: 'inline' }} selected={value} onSelect={(_event, value) => onSelect(value?.toString() ?? '')} + isScrollable > onSelect(value?.toString() ?? '')} + isScrollable > Date: Tue, 10 Feb 2026 16:26:15 +0100 Subject: [PATCH 2/2] ControlPanelComboBox.js adapted Signed-off-by: Enrique Mingorance Cano --- .../controls/ControlPanelComboBox.js | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/TemplateEditor/controls/ControlPanelComboBox.js b/frontend/src/components/TemplateEditor/controls/ControlPanelComboBox.js index 5672a666d38..42de0ba6abe 100644 --- a/frontend/src/components/TemplateEditor/controls/ControlPanelComboBox.js +++ b/frontend/src/components/TemplateEditor/controls/ControlPanelComboBox.js @@ -168,6 +168,7 @@ class ControlPanelComboBox extends React.Component { 'tf--list-box__menu-icon': true, 'tf--list-box__menu-icon--open': isOpen, }) + const toggleStyles = { height: isOpen ? '10%' : '100%' } const inputClasses = classNames({ 'pf-v6-c-form-control': true, input: true, @@ -274,6 +275,7 @@ class ControlPanelComboBox extends React.Component { ref={this.setToggleRef} onClick={this.clickToggle.bind(this)} onKeyPress={this.pressToggle.bind(this)} + style={toggleStyles} > {!disabled && isOpen && (
{ this.menuClick = true }} onMouseUp={() => { this.menuClick = false }} - tabIndex="0" > - {items.map(({ label, id }) => { - const itemClasses = classNames({ - 'tf--list-box__menu-item': true, - searching: searchText, - }) - return ( -
this.setState({ preselect: true })} - onClick={this.clickSelect.bind(this, label)} - onKeyPress={this.pressSelect.bind(this, label)} - > - {this.renderLabel(label, searchText, active, control, simplified, describe)} -
- ) - })} +
+
    + {items.map(({ label, id }) => ( +
  • + +
  • + ))} +
+
)}