Skip to content

Commit bedc11f

Browse files
fixed search disable and icon color for filter
1 parent fe35dfd commit bedc11f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/ui/components/Filters/index.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ const FilterComponent = ({
738738
<icons.funnelFill
739739
style={{ padding: '5px 0px 0px 7px' }}
740740
size={iconSizes.sm}
741-
color={iconColors.primary}
741+
color={searchText ? iconColors.grey : iconColors.primary}
742742
/>
743743
</Box>
744744
<Box
@@ -755,7 +755,14 @@ const FilterComponent = ({
755755
filters.map((filter: any, index: number) => {
756756
return (
757757
<FlexBox.Row key={index} className={styles.tile}>
758-
<Box onClick={() => hanldeDelete(index)}>
758+
<Box
759+
onClick={() => {
760+
if (filters.length === 1) {
761+
setShowInbar(false);
762+
}
763+
hanldeDelete(index);
764+
}}
765+
>
759766
{`${filter.column.selectedValue.label} ${
760767
filter.column.selectedValue.label === 'Shared' ||
761768
filter.column.selectedValue.label === 'Status'
@@ -1021,6 +1028,9 @@ const FilterComponent = ({
10211028

10221029
<Box
10231030
onClick={() => {
1031+
if (filters.length === 1) {
1032+
setShowInbar(false);
1033+
}
10241034
hanldeDelete(index);
10251035
}}
10261036
className={styles.removeIcon}

0 commit comments

Comments
 (0)