From a8dd0e2c928b494bc8ed67215da4fae0e168af7c Mon Sep 17 00:00:00 2001 From: Chris V Date: Fri, 27 Dec 2019 09:58:55 -0700 Subject: [PATCH 1/2] [Autocomplete] Add disabled to getCustomizedTagProps --- packages/material-ui-lab/src/Autocomplete/Autocomplete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js index 45f6d6e4a81e8e..856a6d68dedf78 100644 --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js @@ -301,6 +301,7 @@ const Autocomplete = React.forwardRef(function Autocomplete(props, ref) { className: clsx(classes.tag, { [classes.tagSizeSmall]: size === 'small', }), + disabled, ...getTagProps(params), }); From 92a0f7b2cbd9253e5caa60e23cebe93282f3898e Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 31 Dec 2019 12:13:16 +0100 Subject: [PATCH 2/2] update demo --- docs/src/pages/components/autocomplete/FixedTags.js | 2 +- docs/src/pages/components/autocomplete/FixedTags.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/components/autocomplete/FixedTags.js b/docs/src/pages/components/autocomplete/FixedTags.js index 3039b4801afc52..a76eaaa5a4bcd6 100644 --- a/docs/src/pages/components/autocomplete/FixedTags.js +++ b/docs/src/pages/components/autocomplete/FixedTags.js @@ -14,7 +14,7 @@ export default function FixedTags() { defaultValue={[top100Films[6], top100Films[13]]} renderTags={(value, getTagProps) => value.map((option, index) => ( - + )) } style={{ width: 500 }} diff --git a/docs/src/pages/components/autocomplete/FixedTags.tsx b/docs/src/pages/components/autocomplete/FixedTags.tsx index d655dc23f56606..be3aca0eaae2be 100644 --- a/docs/src/pages/components/autocomplete/FixedTags.tsx +++ b/docs/src/pages/components/autocomplete/FixedTags.tsx @@ -14,7 +14,7 @@ export default function FixedTags() { defaultValue={[top100Films[6], top100Films[13]]} renderTags={(value: FilmOptionType[], getTagProps) => value.map((option: FilmOptionType, index: number) => ( - + )) } style={{ width: 500 }}