summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-12-09 22:19:20 +0800
committerLASER-Yi <[email protected]>2021-12-09 22:19:20 +0800
commit65e9a029fedb4a1215e70691519043b3e554a764 (patch)
tree887d2ed64c1f33b74b37258e92154ba9154322b6
parent0af9647a6a7989e1ea0d9b23d302e53fca313a48 (diff)
downloadbazarr-65e9a029fedb4a1215e70691519043b3e554a764.tar.gz
bazarr-65e9a029fedb4a1215e70691519043b3e554a764.zip
no log: Try to fix some issues with chip component
-rw-r--r--frontend/src/components/inputs/Chips.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/components/inputs/Chips.tsx b/frontend/src/components/inputs/Chips.tsx
index af1ce9f4f..012e41c61 100644
--- a/frontend/src/components/inputs/Chips.tsx
+++ b/frontend/src/components/inputs/Chips.tsx
@@ -14,8 +14,8 @@ const SplitKeys = ["Tab", "Enter", " ", ",", ";"];
export interface ChipsProps {
disabled?: boolean;
- defaultValue?: readonly string[];
- value?: readonly string[];
+ defaultValue?: string[];
+ value?: string[];
onChange?: (v: string[]) => void;
}
@@ -25,7 +25,7 @@ export const Chips: FunctionComponent<ChipsProps> = ({
disabled,
onChange,
}) => {
- const [chips, setChips] = useState(() => {
+ const [chips, setChips] = useState<string[]>(() => {
if (value) {
return value;
}