Skip to content

[QUESTION] How to set defaultValue with styles? #29

@aldwnesx

Description

@aldwnesx

Default values are not given the appropriate color

image

 <FormControl p={4}>
  <FormLabel>Select Tag</FormLabel>
  <Select
    size="lg"
    isMulti
    name="colors"
    options={mappedOptions}
    placeholder="Select some tags"
    closeMenuOnSelect={false}
    onChange={handleSetSelectedOptions}
    defaultValue={[mappedOptions[1]]}

  />
</FormControl>

Metadata

Metadata

Assignees

Labels

QuestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions