From 1f7f2b27032df852e7f5c2e72cf2a401ee568a93 Mon Sep 17 00:00:00 2001 From: D V <77478658+DarhkVoyd@users.noreply.github.com> Date: Thu, 14 Sep 2023 13:41:57 +0530 Subject: [PATCH] [Autocomplete][base-ui] Added ref to getInputProps return value (#38919) --- .../autocomplete/AutocompleteIntroduction/system/index.js | 1 - .../autocomplete/AutocompleteIntroduction/system/index.tsx | 1 - .../autocomplete/AutocompleteIntroduction/tailwind/index.js | 1 - .../autocomplete/AutocompleteIntroduction/tailwind/index.tsx | 1 - docs/pages/base-ui/api/use-autocomplete.json | 4 ++-- packages/mui-base/src/useAutocomplete/useAutocomplete.d.ts | 4 +++- 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/data/base/components/autocomplete/AutocompleteIntroduction/system/index.js b/docs/data/base/components/autocomplete/AutocompleteIntroduction/system/index.js index 73c984e5efc078..47593a14592705 100644 --- a/docs/data/base/components/autocomplete/AutocompleteIntroduction/system/index.js +++ b/docs/data/base/components/autocomplete/AutocompleteIntroduction/system/index.js @@ -48,7 +48,6 @@ const Autocomplete = React.forwardRef(function Autocomplete(props, ref) { > React.InputHTMLAttributes; + getInputProps: () => React.InputHTMLAttributes & { + ref: React.Ref; + }; /** * Resolver for the input label element's props. * @returns props that should be spread on the input label element