File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export interface FieldListProps {
19
19
fieldPath ?: string ;
20
20
ref ?: React . RefObject < HTMLDivElement | null > ;
21
21
customStyle ?: StyleXStyles ;
22
+ showPath ?: boolean ;
22
23
}
23
24
24
25
export function ValueList ( {
@@ -27,6 +28,7 @@ export function ValueList({
27
28
fieldPath,
28
29
ref,
29
30
customStyle,
31
+ showPath = true ,
30
32
} : FieldListProps ) {
31
33
const { searchResults} = useSearch ( search , fieldPath ) ;
32
34
const stringSearchResults = useMemo (
@@ -51,7 +53,9 @@ export function ValueList({
51
53
onClick = { ( ) => onClick ( value ) }
52
54
>
53
55
< Value value = { value } />
54
- < div { ...stylex . props ( styles . field ) } > { value . fieldName } </ div >
56
+ { showPath ? (
57
+ < div { ...stylex . props ( styles . field ) } > { value . fieldName } </ div >
58
+ ) : null }
55
59
</ div >
56
60
) )
57
61
) : search ? (
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ export const StringFilterCore: React.FC<StringFilterCoreProps> = ({
165
165
}
166
166
} }
167
167
customStyle = { styles . valueList }
168
+ showPath = { false }
168
169
/>
169
170
</ div >
170
171
</ >
You can’t perform that action at this time.
0 commit comments