web: fix tabs detecting all slot elements
This commit is contained in:
parent
b81f3e4a38
commit
6495d6c50a
|
@ -28,7 +28,7 @@ export class Tabs extends LitElement {
|
|||
}
|
||||
|
||||
render(): TemplateResult {
|
||||
const pages = Array.from(this.querySelectorAll("[slot]"));
|
||||
const pages = Array.from(this.querySelectorAll("[slot^='page-']"));
|
||||
if (!this.currentPage) {
|
||||
if (pages.length < 1) {
|
||||
return html`<h1>${gettext("no tabs defined")}</h1>`;
|
||||
|
|
Reference in New Issue