Skip to content

Commit

Permalink
placeholder does not depend on RQB
Browse files Browse the repository at this point in the history
Signed-off-by: basseche <[email protected]>
  • Loading branch information
basseche committed Jan 23, 2025
1 parent c7563f3 commit 92a43cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/inputs/reactQueryBuilder/PropertyValueEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ export function PropertyValueEditor(props: ExpertFilterPropertyProps) {
options={predefinedValues ?? []}
title={valueEditorProps?.title}
multiple
renderInput={(params) => {
return (
<TextField {...params} error={!valid} label={intl.formatMessage({ id: 'valuesList' })} />
);
}}
renderInput={(params) => (
<TextField
{...params}
error={!valid}
placeholder={propertyValues?.length > 0 ? '' : intl.formatMessage({ id: 'valuesList' })}
/>
)}
freeSolo
autoSelect
onChange={(event, value: any) => {
Expand Down

0 comments on commit 92a43cf

Please sign in to comment.