@royaloperahouse/harmonic 0.11.0-n → 0.11.0-o
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/harmonic.cjs.development.js +5 -7
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +5 -7
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/types/navigation.d.ts +0 -2
- package/package.json +1 -1
|
@@ -6112,8 +6112,6 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6112
6112
|
bottomBorder = _ref$bottomBorder === void 0 ? false : _ref$bottomBorder,
|
|
6113
6113
|
_ref$withShadow = _ref.withShadow,
|
|
6114
6114
|
withShadow = _ref$withShadow === void 0 ? false : _ref$withShadow,
|
|
6115
|
-
_ref$offsetHeight = _ref.offsetHeight,
|
|
6116
|
-
offsetHeight = _ref$offsetHeight === void 0 ? 0 : _ref$offsetHeight,
|
|
6117
6115
|
className = _ref.className;
|
|
6118
6116
|
var tabListRef = React.useRef(null);
|
|
6119
6117
|
var wrapperRef = React.useRef(null);
|
|
@@ -6145,16 +6143,16 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6145
6143
|
if (!selectedItem) return;
|
|
6146
6144
|
var targetSectionElement = document.getElementById(selectedItem);
|
|
6147
6145
|
if (targetSectionElement) {
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6146
|
+
targetSectionElement.scrollIntoView({
|
|
6147
|
+
behavior: 'auto',
|
|
6148
|
+
block: 'start'
|
|
6149
|
+
});
|
|
6152
6150
|
}
|
|
6153
6151
|
var clickedTab = document.getElementById("tablink-" + selectedItem);
|
|
6154
6152
|
if (clickedTab) {
|
|
6155
6153
|
clickedTab.focus();
|
|
6156
6154
|
}
|
|
6157
|
-
}, [selectedItem
|
|
6155
|
+
}, [selectedItem]);
|
|
6158
6156
|
var getScrollWidth = function getScrollWidth() {
|
|
6159
6157
|
var width = 0;
|
|
6160
6158
|
var selectedItemIndex = tabs.findIndex(function (el) {
|