Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//console.log('Inside MenuList:');
var _props = this.props,
options = _props.options,
children = _props.children,
maxHeight = _props.maxHeight,
getValue = _props.getValue;
var _getValue = getValue(),
_getValue2 = _slicedToArray(_getValue, 1),
value = _getValue2[0];
var initialOffset = options.indexOf(value) * height;
return _react2.default.createElement(
_reactWindow.FixedSizeList,
{
height: maxHeight,
itemCount: children.length,
itemSize: 50,
initialScrollOffset: initialOffset },
function (_ref) {
var index = _ref.index,
style = _ref.style;
return _react2.default.createElement(
"div",
{ style: style },
children[index]
);
}
);
}