I have a Semantic UI React Dropdown Form.Field
I am trying to set a default value of English
how can I do this?
<Form.Field
name="languageSkills"
label=""
placeholder="Language"
value={this.state.reviewerSearch.languageSkills['English']}
onChange={this.handleSearchFilterChange}
category={'languages'}
control={LookupDropdown}
fluid
multiple
search
selection
/>
I think you are looking for defaultValue,
<Form.Field
name="languageSkills"
label=""
placeholder="Language"
defaultValue={this.state.reviewerSearch.languageSkills['English']}
onChange={this.handleSearchFilterChange}
category={'languages'}
control={LookupDropdown}
fluid
multiple
search
selection
/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.