This commit is contained in:
Infinite
2020-02-13 19:57:25 +01:00
parent 8fe6eb0d77
commit 750759e4bf
20 changed files with 120 additions and 100 deletions

View File

@@ -287,7 +287,9 @@ export const TagSelect: React.FC<IFilterProps> = props => {
const onChange = (selectedItems: ValueType<Option>) => {
const selectedValues = getSelectedValues(selectedItems);
setSelectedIds(selectedValues);
props.onSelect?.(tags.filter(item => selectedValues.indexOf(item.id) !== -1));
props.onSelect?.(
tags.filter(item => selectedValues.indexOf(item.id) !== -1)
);
};
return (
@@ -361,7 +363,7 @@ const SelectComponent: React.FC<ISelectProps & ITypeProps> = ({
isClearable,
defaultValue,
noOptionsMessage: () => (type !== "tags" ? "None" : null),
placeholder: isDisabled ? '' : placeholder,
placeholder: isDisabled ? "" : placeholder,
onInputChange,
isDisabled,
isLoading,