Skip to content

How to prefill select value when it is Async with fetch.js? #1166

@ananddodia

Description

@ananddodia

@JedWatson - I Need your help. please reply to below issue I am facing.
If any one else knows solution to this problem please help me.
I have made Async select with fetch.js. How can I make it prefilled when its in edit form scenario?
below is my code
<Select.Async name={name} value={this.state.city} className={className} id={id} ref={ref} loadOptions={this.getCity} placeholder={placeholder} onChange={this.updateValue} autosize={false} clearable={false} minimumInput={1} backspaceRemoves={false} />

value and label is already available from parent component.

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