File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
src/ui/components/Filters Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments