Skip to content

Commit

Permalink
Update packages/ra-ui-materialui/src/input/ReferenceInput.tsx
Browse files Browse the repository at this point in the history
Co-Authored-By: Francois Zaninotto <[email protected]>
  • Loading branch information
2 people authored and akshah123 committed Feb 14, 2020
1 parent 8c66216 commit c5ef4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/ReferenceInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export const ReferenceInputView: FunctionComponent<ReferenceInputViewProps> = ({
// But in a Filter component, the child helperText have to be forced to false
warningLog(
helperText !== undefined && helperText !== false,
"<ReferenceInput> doesn't accept an helperText value, it should be set on the child component"
"<ReferenceInput> doesn't accept a helperText prop. Set the helperText prop on the child component instead"
);

const disabledHelperText = helperText === false ? { helperText } : {};
Expand Down

0 comments on commit c5ef4c9

Please sign in to comment.