ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

Upgrade Toolbar SelectOption to accept value attribute

Open anichkasam opened this issue 4 weeks ago • 3 comments

Is your feature request related to a problem?

I need to use a Select input in a Toolbar, but if I use the normal Select component (because it has the functionality I need), the overflow functionality with the popover does not work. ToolbarSelectOption does not accept a value attribute like it should.

Describe the solution you'd like

I would like ToolbarSelectOption to accept a value, not only children.

Describe alternatives you've considered

Using dataset is not ideal

Additional Context

No response

Organization

No response

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

anichkasam avatar Dec 01 '25 06:12 anichkasam

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.

MarcusNotheis avatar Dec 02 '25 07:12 MarcusNotheis

Hello @anichkasam ,

Could you please provide examples (code snippets) of what you are trying to achieve? If possible, kindly share screenshots or design mockups so we can better understand your requirements.

Best Regards, Lidiya

LidiyaGeorgieva avatar Dec 02 '25 11:12 LidiyaGeorgieva

The ToolbarSelect should behave like the Select, when used by apps it is much easier to provide a value (which behaves like a key) to each option and the value of the whole select controls and represents the selected option's value.

Here is an example from the Select test https://github.com/UI5/webcomponents/blob/89bb0dd62322598bd1ea7ce984eaf0618546a6f2/packages/main/cypress/specs/Select.cy.tsx#L7-L20

pskelin avatar Dec 02 '25 16:12 pskelin