We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7ffd36 commit faeea17Copy full SHA for faeea17
src/pat/autotoc/autotoc.js
@@ -28,6 +28,9 @@ export default Base.extend({
28
29
var self = this;
30
31
+ const autotocInstances = $(".pat-autotoc");
32
+ self.instanceIndex = autotocInstances.index(self.$el);
33
+
34
const $nav = $("<nav/>")
35
.attr("aria-label", "Tab Navigation");
36
@@ -81,7 +84,7 @@ export default Base.extend({
81
84
const $section = $level.closest(self.options.section);
82
85
let sectionId = $section.prop("id");
83
86
let sectionHash = `#${sectionId}`;
- const tabId = `${self.options.IDPrefix}${self.name}-${i}`;
87
+ const tabId = `${self.options.IDPrefix}${self.name}-${self.instanceIndex}-${i}`;
88
const tabHash = `#${tabId}`;
89
const levelId = `${tabId}-pane`;
90
const levelHash = `#${levelId}`;
0 commit comments