blixify-ui-web 0.4.156 → 0.4.157

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAQN,MAAM,OAAO,CAAC;AAuEf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAoB1B,eAAO,MAAM,YAAY,mFAi3OvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAQN,MAAM,OAAO,CAAC;AAuEf,OAAO,EACL,iBAAiB,EAKlB,MAAM,kBAAkB,CAAC;AAoB1B,eAAO,MAAM,YAAY,mFA+2OvB,CAAC"}
@@ -4214,11 +4214,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (props, ref) {
4214
4214
  setTimeout(function () {
4215
4215
  var element = document.getElementById(foundId_1);
4216
4216
  if (element) {
4217
- var rect = element.getBoundingClientRect();
4218
- var scrollTop = window.pageYOffset + rect.top - window.innerHeight / 2;
4219
- window.scrollTo({
4220
- top: scrollTop,
4217
+ element.scrollIntoView({
4221
4218
  behavior: "smooth",
4219
+ block: "center",
4220
+ inline: "nearest",
4222
4221
  });
4223
4222
  }
4224
4223
  }, 300);