Releases: moroshko/react-autowhatever
Releases · moroshko/react-autowhatever
v10.2.0
v10.1.2
v10.1.1
v10.1.0
v10.0.0
shouldRenderSectionprop was removed- Use
prop-typesinstead ofReact.PropTypes
v9.0.0
v8.0.0
- The following props have changed:
focusedSectionIndex=>highlightedSectionIndexfocusedItemIndex=>highlightedItemIndex
renderItemsContainersignature changed - all the props that should be set on the items container are nested incontainerPropsnow. The new signature is:
function renderItemsContainer({ children, containerProps })themeupdated to better support inline styles:- Added
inputOpen - Added
inputFocus - Added
itemsContainerOpen - Added
sectionContainerFirst itemFocused=>itemHighlight
- Added
- Update React peer dependency to include 16.0.0-alpha.2
v7.0.0
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
Renamed inputElement to inputComponent.
As opposed inputElement, inputComponent cannot be a string (e.g. 'textarea'). This important restriction was introduced to keep Autowhatever accessible.