Skip to content

v4.6.1

Compare
Choose a tag to compare
@oliviertassinari oliviertassinari released this 12 Nov 13:54
· 15641 commits to master since this release
Nov 12, 2019

Big thanks to the 19 contributors who made this release possible.

Here are some highlights ✨:

  • 🔍 12 patches on the Autocomplete component.
  • 👨‍🎤 Add Framer X support (#17797) @mbrookes.
  • And many more 🐛 bug fixes and 📚 improvements.

@material-ui/[email protected]

@material-ui/[email protected]

Breaking changes

diff --git a/docs/src/pages/components/autocomplete/FixedTags.js b/docs/src/pages/components/autocomplete/FixedTags.js
index 757d66a97..a4f36edd5 100644
--- a/docs/src/pages/components/autocomplete/FixedTags.js
+++ b/docs/src/pages/components/autocomplete/FixedTags.js
@@ -11,17 +11,9 @@ export default function FixedTags() {
       options={top100Films}
       getOptionLabel={option => option.title}
       defaultValue={[top100Films[6], top100Films[13]]}
-      renderTags={(value, { className, onDelete }) =>
+      renderTags={(value, getTagProps) =>
         value.map((option, index) => (
-          <Chip
-            key={index}
-            disabled={index === 0}
-            data-tag-index={index}
-            tabIndex={-1}
-            label={option.title}
-            className={className}
-            onDelete={onDelete}
-          />
+          <Chip disabled={index === 0} label={option.title} {...getTagProps({ index })} />
         ))
       }
       style={{ width: 500 }}
<TextField
  renderInput={params => (
    <InputBase
-     ref={params.ref}
+     ref={params.InputProps.ref}
      inputProps={params.inputProps}
    />
  )}
/>

Changes

Docs

Core