Web:Common:FilterInput: update selected items
This commit is contained in:
parent
9230bf1a63
commit
58b57245e2
@ -177,7 +177,7 @@ const FilterInput = React.memo(
|
||||
<SelectedItem
|
||||
key={`${item.key}_${item.group}`}
|
||||
propKey={item.key}
|
||||
label={item.label}
|
||||
label={item.selectedLabel ? item.selectedLabel : item.label}
|
||||
group={item.group}
|
||||
removeSelectedItem={removeSelectedItemAction}
|
||||
/>
|
||||
|
@ -33,6 +33,8 @@ const StyledSelectedItem = styled.div`
|
||||
StyledSelectedItem.defaultProps = { theme: Base };
|
||||
|
||||
const SelectedItem = ({ propKey, label, group, removeSelectedItem }) => {
|
||||
if (!label) return <></>;
|
||||
|
||||
const onRemove = () => {
|
||||
removeSelectedItem(propKey, label, group);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user