@zenkigen-inc/component-ui 1.5.0 → 1.5.1
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/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -31775,7 +31775,7 @@ function SelectList$1(_ref) {
|
|
|
31775
31775
|
var element = Array.from(ref.current.children || []).find(function (item) {
|
|
31776
31776
|
return item.getAttribute('data-id') === (selectedOption == null ? void 0 : selectedOption.id);
|
|
31777
31777
|
});
|
|
31778
|
-
if (element) {
|
|
31778
|
+
if (element && ref.current.scroll) {
|
|
31779
31779
|
var wrapRect = ref.current.getBoundingClientRect();
|
|
31780
31780
|
var rect = element.getBoundingClientRect();
|
|
31781
31781
|
ref.current.scroll(0, rect.top - wrapRect.top - wrapRect.height / 2 + rect.height / 2);
|