@bigbinary/neetoui 6.3.3 → 6.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/formik.cjs.js CHANGED
@@ -27015,7 +27015,12 @@ var CustomInput = function CustomInput(props) {
27015
27015
  }));
27016
27016
  };
27017
27017
  var CustomOption = function CustomOption(props) {
27018
+ var ref = React.useRef();
27019
+ React.useEffect(function () {
27020
+ props.isSelected && ref.current.scrollIntoView();
27021
+ }, [props.isSelected]);
27018
27022
  return /*#__PURE__*/React__default["default"].createElement(components.Option, _extends$2({}, props, {
27023
+ innerRef: ref,
27019
27024
  innerProps: _objectSpread$3(_objectSpread$3({}, props.innerProps), {}, {
27020
27025
  "data-cy": "".concat(hyphenize(props.label), "-select-option")
27021
27026
  })