@mw-kit/mw-ui 1.7.97 → 1.7.99

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.
@@ -12882,10 +12882,10 @@ var ScrollContainer = React__default.forwardRef(function (props, ref) {
12882
12882
  if (event.target !== event.currentTarget) return;
12883
12883
  var target = event.nativeEvent.target;
12884
12884
  if (!target) return;
12885
- var scrollTopMax = target.scrollHeight - target.clientHeight;
12885
+ var scrollTopMax = target.scrollHeight - target.getBoundingClientRect().height - 10;
12886
12886
  var scrollTop = target.scrollTop;
12887
12887
 
12888
- if (scrollTopMax !== 0 && scrollTopMax === scrollTop) {
12888
+ if (scrollTopMax > 0 && scrollTop >= scrollTopMax) {
12889
12889
  setLastPagination(function (prev) {
12890
12890
  var now = new Date();
12891
12891
  var diff = Math.abs((now.getTime() - prev.getTime()) / 1000);
@@ -19432,8 +19432,11 @@ var Close$1 = function Close$1(props) {
19432
19432
  newOptions.splice(index, 1);
19433
19433
  onClose(index, options[index], event);
19434
19434
 
19435
- if (index < active || active === index && active > 0) {
19436
- setActive(active - 1);
19435
+ if (index < active) {
19436
+ setActive(active - 1, newOptions[active - 1].data);
19437
+ } else if (active === index) {
19438
+ var newactive = active > 0 ? active - 1 : active;
19439
+ setActive(newactive, newOptions[newactive].data);
19437
19440
  }
19438
19441
 
19439
19442
  setOptions(newOptions);
@@ -19485,7 +19488,7 @@ var Tabs$1 = function Tabs$1(props) {
19485
19488
  $active: true
19486
19489
  } : {
19487
19490
  onClick: function onClick() {
19488
- return setActive(index);
19491
+ return setActive(index, tab.data);
19489
19492
  }
19490
19493
  }, {
19491
19494
  "$internal": props.internal,