Skip to content

Ability to access underlying Set in combobox #183

@hmnd

Description

@hmnd

Describe the problem

It's currently painful to make a wrapper component that supports combobox with both multiple: true and multiple: false, due to having to handle combobox.value being posisbly a Set or a single value at every turn.

I am aware that valueAsString exists, but that's a bit too simplistic to support all use cases. Eg. in my app, I have to enrich selected values with more info from the data source.

Describe the proposed solution

Expose the internal #value or a pared down version of it that allows for multiple-agnostic manipulation of the selected value. I'd prefer not to have to set up my own SelectionState over the exposed state, as that feels silly!

Importance

Would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions