@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 +5 -0
- package/formik.cjs.js.map +1 -1
- package/formik.js +5 -0
- package/formik.js.map +1 -1
- package/index.cjs.js +5 -0
- package/index.cjs.js.map +1 -1
- package/index.css +1 -1
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -34614,7 +34614,12 @@ var CustomInput = function CustomInput(props) {
|
|
|
34614
34614
|
}));
|
|
34615
34615
|
};
|
|
34616
34616
|
var CustomOption = function CustomOption(props) {
|
|
34617
|
+
var ref = React$3.useRef();
|
|
34618
|
+
React$3.useEffect(function () {
|
|
34619
|
+
props.isSelected && ref.current.scrollIntoView();
|
|
34620
|
+
}, [props.isSelected]);
|
|
34617
34621
|
return /*#__PURE__*/React__default["default"].createElement(components.Option, _extends$4({}, props, {
|
|
34622
|
+
innerRef: ref,
|
|
34618
34623
|
innerProps: _objectSpread$e(_objectSpread$e({}, props.innerProps), {}, {
|
|
34619
34624
|
"data-cy": "".concat(hyphenize(props.label), "-select-option")
|
|
34620
34625
|
})
|