@royaloperahouse/harmonic 0.11.0-o → 0.11.0-p
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 +1 -12
- 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 +1 -12
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/harmonic.esm.js
CHANGED
|
@@ -6174,26 +6174,15 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6174
6174
|
return id === selectedItem;
|
|
6175
6175
|
};
|
|
6176
6176
|
var onClickTab = function onClickTab(e, id) {
|
|
6177
|
-
e.preventDefault();
|
|
6178
6177
|
if (onTabClick) {
|
|
6179
6178
|
onTabClick(e, id);
|
|
6180
6179
|
}
|
|
6181
6180
|
setSelectedItem(id);
|
|
6182
|
-
};
|
|
6183
|
-
useEffect(function () {
|
|
6184
|
-
if (!selectedItem) return;
|
|
6185
|
-
var targetSectionElement = document.getElementById(selectedItem);
|
|
6186
|
-
if (targetSectionElement) {
|
|
6187
|
-
targetSectionElement.scrollIntoView({
|
|
6188
|
-
behavior: 'auto',
|
|
6189
|
-
block: 'start'
|
|
6190
|
-
});
|
|
6191
|
-
}
|
|
6192
6181
|
var clickedTab = document.getElementById("tablink-" + selectedItem);
|
|
6193
6182
|
if (clickedTab) {
|
|
6194
6183
|
clickedTab.focus();
|
|
6195
6184
|
}
|
|
6196
|
-
}
|
|
6185
|
+
};
|
|
6197
6186
|
var getScrollWidth = function getScrollWidth() {
|
|
6198
6187
|
var width = 0;
|
|
6199
6188
|
var selectedItemIndex = tabs.findIndex(function (el) {
|