Skip to content

Expose ComboBoxContext to ListBoxItem #8831

@vezaynk

Description

@vezaynk

Provide a general summary of the feature here

In our flow, we want users to be deliberate in when entering an option that isn't part of the available combobox options. Something like this:

Image

In order to do this, we currently have to read inputs from the input box, generate a new dynamic item to append to the listbox, and pass it down to be rendered.

🤔 Expected Behavior?

useContext(ComboBoxContext) comes back as null.

😯 Current Behavior

useContext(ComboBoxContext) should come back with relevant information, such as the inputValue.

💁 Possible Solution

No response

🔦 Context

The context type already exists. I was surprised to find it unaccessible.

💻 Examples

No response

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions