React Autowhatever Versions Save

Accessible rendering layer for Autosuggest and Autocomplete components

v10.2.0

5 years ago

Add containerProps

v10.1.2

5 years ago
  • Better accessibility (See #40)

v10.1.1

6 years ago
  • Remove aria-haspopup

v10.1.0

6 years ago
  • Now we pass isHighlighted to renderItem

v10.0.0

7 years ago
  • shouldRenderSection prop was removed
  • Use prop-types instead of React.PropTypes

v9.0.0

7 years ago

theme keys changed:

  • inputFocus => inputFocused
  • itemHighlight => itemHighlighted

v8.0.0

7 years ago
  • The following props have changed:
    • focusedSectionIndex => highlightedSectionIndex
    • focusedItemIndex => highlightedItemIndex
  • renderItemsContainer signature changed - all the props that should be set on the items container are nested in containerProps now. The new signature is:
function renderItemsContainer({ children, containerProps })
  • theme updated to better support inline styles:
    • Added inputOpen
    • Added inputFocus
    • Added itemsContainerOpen
    • Added sectionContainerFirst
    • itemFocused => itemHighlight
  • Update React peer dependency to include 16.0.0-alpha.2

v7.0.0

7 years ago

inputComponent was removed in favor of the new renderInputComponent.

When using renderInputComponent, make sure to pass through the inputProps that you get to the <input> element.

For example:

const renderInputComponent = inputProps => {
  const style = {
    <some styles>
  };

  return (
    <div>
      <input style={style} {...inputProps} />
      {<your custom stuff>}
    </div>
  );
};

v6.0.0

7 years ago

Renamed inputElement to inputComponent.

As opposed inputElement, inputComponent cannot be a string (e.g. 'textarea'). This important restriction was introduced to keep Autowhatever accessible.

v5.4.0

7 years ago

Added inputElement prop