Skip to content

1.28.0

Compare
Choose a tag to compare
@1Copenut 1Copenut released this 23 Oct 17:00

Purpose

Build hooks into the Select, and TextField components so we can easily focus them in situations where inputs are being dynamically added to the DOM, and should receive focus for the widest usability and accessibility.

This was achieved by adding a Boolean prop focusTrigger and logic to conditionally override the component refs.

🚀 Added

  • focusTrigger Boolean prop to the Select and TextField components for a hook to trigger active focus on componentDidMount()
  • focusTrigger as a pass-through on Autocomplete
  • autocomplete: 'nope' to the Autocomplete propOverrides object being passed to the child component

💅 Changes

  • Selectinto a stateful React.PureComponent