mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-01 04:22:07 +08:00
no log: Try to fix some issues with chip component
This commit is contained in:
parent
0af9647a6a
commit
65e9a029fe
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue