@momentum-design/components 0.70.4 → 0.71.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.
@@ -198,8 +198,6 @@ class TabList extends Component {
198
198
  this.resetTabIndexAndSetNewTabIndex(tab);
199
199
  tab.focus();
200
200
  }
201
- // @ts-ignore : https://github.com/Microsoft/TypeScript/issues/28755
202
- tab.scrollIntoView({ behavior: 'instant', block: 'start', inline: 'center' });
203
201
  await this.handleArrowButtonVisibility();
204
202
  };
205
203
  /**
@@ -381,14 +379,6 @@ class TabList extends Component {
381
379
  }
382
380
  }
383
381
  const resizeObserver = new ResizeObserver(async () => {
384
- const { activeElement } = document;
385
- /**
386
- * Keep the focused element in view.
387
- */
388
- if (activeElement instanceof Tab) {
389
- // @ts-ignore : https://github.com/Microsoft/TypeScript/issues/28755
390
- activeElement.scrollIntoView({ behavior: 'instant', block: 'start', inline: 'center' });
391
- }
392
382
  await this.handleArrowButtonVisibility();
393
383
  });
394
384
  resizeObserver.observe(this);
package/package.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "lit": "^3.2.0",
40
40
  "uuid": "^11.0.5"
41
41
  },
42
- "version": "0.70.4"
42
+ "version": "0.71.1"
43
43
  }