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.
2 parents e820871 + 66120bf commit 5396510Copy full SHA for 5396510
src/themes/spectre.js
@@ -318,9 +318,8 @@ export class spectreTheme extends AbstractTheme {
318
getTab (span, tabId) {
319
const el = document.createElement('a')
320
el.classList.add('btn', 'btn-secondary', 'btn-block')
321
- el.id = tabId
322
- el.innerHTML = span.innerHTML
323
-
+ el.setAttribute('href', `#${tabId}`)
+ el.appendChild(span)
324
return el
325
}
326
@@ -332,8 +331,9 @@ export class spectreTheme extends AbstractTheme {
332
331
333
/* Spectre needs an a tag inside the tab item, not a span */
334
const a = document.createElement('a')
335
- a.href = '#'
336
- a.innerHTML = span.innerHTML
+ a.setAttribute('href', `#${tabId}`)
+ a.appendChild(span)
+
337
el.appendChild(a)
338
339
0 commit comments