componentWillUpdate(nextProperties, nextState) {
    const shouldPositionOptions = has(nextProperties, 'shouldPositionOptions') ? nextProperties.shouldPositionOptions : config.shouldPositionOptions;

    if (shouldPositionOptions) {
      const menuNode = ReactDOM.findDOMNode(this.refs.menu);
      this.cachedMenuScrollTop = menuNode.scrollTop;

      if (!this.state.isOpen && nextState.isOpen) {
        menuNode.style.display = 'none';
      }
    }
  }
In case shouldPositionOptions is active the scrollTop position is stored
to be applied later on. The menu is hidden to make sure it is
not displayed beofre repositioned.