Skip to content

When component is searchable, onBlur always resets value even when onBlurResetsInput is set to false #805

@akalajzi

Description

@akalajzi

Hi.
These are the options I'm using:

        <Select
          {...field}
          value={field.value}
          name={field.name}
          searchable
          onBlurResetsInput={false}
          clearable={false}
          className={"form-control"}
          options={options}
        />

Though I've tried all sorts of combinations, and the only way I can get selected value to stick is to set searchable to false. Otherwise, input resets when I click outside select.
Watching the state change, selecting option really does set value, and onBlur resets it.

Bug, or am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions