web/elements: only find pages for directly related slots

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-30 22:35:57 +01:00
parent 9d422918b3
commit 780b986be8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export class Tabs extends AKElement {
}
render(): TemplateResult {
const pages = Array.from(this.querySelectorAll("[slot^='page-']"));
const pages = Array.from(this.querySelectorAll(":scope > [slot^='page-']"));
if (window.location.hash.includes(ROUTE_SEPARATOR)) {
const params = getURLParams();
if (this.pageIdentifier in params) {