Skip to content

Combobox allowCustomValue property has no affect #4046

@Reboog711

Description

@Reboog711

Current Behavior

The allowCustomValue property on the Combobox seems to have no affect. Usually when allowing custom values, a return key press or comma will communicate that "This is a new value I want to save as a selected value. However, when this property is set to true, nothing

Here are a few examples of other Combobox / AutoCompletes that support values not in the drop down list:

The current Combobox does not support this functionality.

Expected Behavior

When allowCustomValue is set to true, I expect the enter key--or possibly the comma--to treat the text I entered as if it were a new value.

Steps To Reproduce

  1. Create a Combobox with the allowCustomValue property set to true
  2. Type a value not in the drop down
  3. Hit the enter key, or comma, and the value you entered is never added to 'values' as a selected value.

Link to Reproduction / Stackblitz

No response

Environment Information

All my testing was on the latest version of Chrome; with Svelte 5, Tailwind 4.

More Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions