@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
|
@@ -6133,26 +6133,15 @@ var AnchorTabBar = function AnchorTabBar(_ref) {
|
|
|
6133
6133
|
return id === selectedItem;
|
|
6134
6134
|
};
|
|
6135
6135
|
var onClickTab = function onClickTab(e, id) {
|
|
6136
|
-
e.preventDefault();
|
|
6137
6136
|
if (onTabClick) {
|
|
6138
6137
|
onTabClick(e, id);
|
|
6139
6138
|
}
|
|
6140
6139
|
setSelectedItem(id);
|
|
6141
|
-
};
|
|
6142
|
-
React.useEffect(function () {
|
|
6143
|
-
if (!selectedItem) return;
|
|
6144
|
-
var targetSectionElement = document.getElementById(selectedItem);
|
|
6145
|
-
if (targetSectionElement) {
|
|
6146
|
-
targetSectionElement.scrollIntoView({
|
|
6147
|
-
behavior: 'auto',
|
|
6148
|
-
block: 'start'
|
|
6149
|
-
});
|
|
6150
|
-
}
|
|
6151
6140
|
var clickedTab = document.getElementById("tablink-" + selectedItem);
|
|
6152
6141
|
if (clickedTab) {
|
|
6153
6142
|
clickedTab.focus();
|
|
6154
6143
|
}
|
|
6155
|
-
}
|
|
6144
|
+
};
|
|
6156
6145
|
var getScrollWidth = function getScrollWidth() {
|
|
6157
6146
|
var width = 0;
|
|
6158
6147
|
var selectedItemIndex = tabs.findIndex(function (el) {
|