Skip to content

Releases: moroshko/react-autowhatever

v5.3.0

06 Sep 11:57
Compare
Choose a tag to compare
  • Upgraded react-themable to support styling with Aphrodite.
  • Added a standalone build.

v5.2.0

06 Sep 11:55
Compare
Choose a tag to compare

Note: this release was botched. Install 5.3.0 or later instead.

Allow theme to be an array. This is useful for styling with Aphrodite.

v5.1.2

10 Aug 12:27
Compare
Choose a tag to compare
  • Fixed linting issues
  • Fixed the use of renderItemsContainer in examples

v5.1.1

10 Aug 00:31
Compare
Choose a tag to compare
  • Fixed linting issues
  • Fixed Example7

v5.1.0

10 Aug 00:27
Compare
Choose a tag to compare

Added a new renderItemsContainer prop, which can be used, for example, to limit the scrolling to items container only:

import IsolatedScroll from 'react-isolated-scroll';

function renderItemsContainer({ ref, ...rest }) {
  const callRef = isolatedScroll => {
    if (isolatedScroll !== null) {
      ref(isolatedScroll.component);
    }
  };

  return (
    <IsolatedScroll {...rest} ref={callRef} />
  );
}

<Autowhatever renderItemsContainer={renderItemsContainer} ... />

v5.0.0

09 Aug 00:49
Compare
Choose a tag to compare

The DOM structure changed a bit:

BEFORE:

itemsContainer existed in the DOM only when items existed.

screen shot 2016-08-09 at 10 25 26 am

AFTER:

Now, itemsContainer always exists in the DOM.
This is useful when the itemsContainer has a scroll bar, and you want to bind certain events to it.

screen shot 2016-08-09 at 10 26 54 am

Consequently, theme.sectionItemsContainer was removed in favor of the new theme.itemsList.

Fixed focused item visibility when multiSection={true}.

Added aria-haspopup attribute to the input.

v4.3.0

31 Jul 00:12
Compare
Choose a tag to compare

Added a new renderItemData prop, which is an arbitrary object that will be passed to renderItem (as a second parameter). It is used to make renderItem a pure function, which allows to optimize the rendering performance.

v4.2.0

30 Jul 02:56
Compare
Choose a tag to compare

Performance optimizations

v4.1.0

24 Jul 01:29
Compare
Choose a tag to compare

Optimized rendering performance - renderItem is called now only when necessary

v4.0.0

20 Jul 09:29
Compare
Choose a tag to compare

The input element is available now on the Autowhatever instance rather than refs.

storeInputReference(autowhatever) {
  if (autowhatever !== null) {
-    this.input = autowhatever.refs.input;
+    this.input = autowhatever.input;
  }
}

<Autowhatever ref={this.storeInputReference} />