Skip to content

Commit 1863398

Browse files
changed select to creatableselect for classification
1 parent 632d4d9 commit 1863398

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/RegionLabel/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import TrashIcon from "@material-ui/icons/Delete"
1212
import CheckIcon from "@material-ui/icons/Check"
1313
import UndoIcon from "@material-ui/icons/Undo"
1414
import Select from "react-select"
15+
import CreatableSelect from "react-select/creatable"
16+
1517
import { asMutable } from "seamless-immutable"
1618

1719
const useStyles = makeStyles(styles)
@@ -100,7 +102,7 @@ export const RegionLabel = ({
100102
</div>
101103
{(allowedClasses || []).length > 0 && (
102104
<div style={{ marginTop: 6 }}>
103-
<Select
105+
<CreatableSelect
104106
placeholder="Classification"
105107
onChange={(o) =>
106108
onChange({

0 commit comments

Comments
 (0)