diff --git a/docs/Inputs.md b/docs/Inputs.md index 8a1180bd6d9..b6a5b21f381 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -181,12 +181,12 @@ If you want to limit the initial choices shown to the current value only, you ca When dealing with a large amount of `choices` you may need to limit the number of suggestions that are rendered in order to maintain usable performance. The `shouldRenderSuggestions` is an optional prop that allows you to set conditions on when to render suggestions. An easy way to improve performance would be to skip rendering until the user has entered 2 or 3 characters in the search box. This lowers the result set significantly, and might be all you need (depending on your data set). Ex. ` { return val.trim().length > 2 }} />` would not render any suggestions until the 3rd character was entered. This prop is passed to the underlying `react-autosuggest` component and is documented [here](https://github.com/moroshko/react-autosuggest#should-render-suggestions-prop). -`` renders a material-ui `` component. Use the `options` attribute to override any of the `` attributes: +`` renders a [material-ui `` component](https://material-ui.com/api/text-field/). Use the `options` attribute to override any of the `` attributes: {% raw %} ```jsx ``` {% endraw %} @@ -285,12 +285,12 @@ However, in some cases (e.g. inside a ``), you may not want the When dealing with a large amount of `choices` you may need to limit the number of suggestions that are rendered in order to maintain usable performance. The `shouldRenderSuggestions` is an optional prop that allows you to set conditions on when to render suggestions. An easy way to improve performance would be to skip rendering until the user has entered 2 or 3 characters in the search box. This lowers the result set significantly, and might be all you need (depending on your data set). Ex. ` { return val.trim().length > 2 }} />` would not render any suggestions until the 3rd character was entered. This prop is passed to the underlying `react-autosuggest` component and is documented [here](https://github.com/moroshko/react-autosuggest#should-render-suggestions-prop). -Lastly, `` renders a [material-ui-chip-input](https://github.com/TeamWertarbyte/material-ui-chip-input) component. Use the `options` attribute to override any of the `` attributes: +Lastly, `` renders a [material-ui `` component](https://material-ui.com/api/text-field/). Use the `options` attribute to override any of the `` attributes: {% raw %} ```jsx ``` {% endraw %} diff --git a/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.tsx b/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.tsx index efb401ce0f0..99a6d4d8c98 100644 --- a/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.tsx +++ b/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.tsx @@ -85,10 +85,10 @@ interface Options { * @example * * - * The object passed as `options` props is passed to the material-ui component + * The object passed as `options` props is passed to the material-ui component * * @example - * + * */ const AutocompleteArrayInput: FunctionComponent< InputProps & DownshiftProps @@ -99,6 +99,7 @@ const AutocompleteArrayInput: FunctionComponent< emptyText, emptyValue, format, + fullWidth, helperText, id: idOverride, input: inputOverride, @@ -358,7 +359,7 @@ const AutocompleteArrayInput: FunctionComponent<
* - * The object passed as `options` props is passed to the material-ui component + * The object passed as `options` props is passed to the material-ui component * * @example - * + * */ const AutocompleteInput: FunctionComponent< InputProps & DownshiftProps