web/elements: only find pages for directly related slots
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
9d422918b3
commit
780b986be8
|
@ -93,7 +93,7 @@ export class Tabs extends AKElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
render(): TemplateResult {
|
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)) {
|
if (window.location.hash.includes(ROUTE_SEPARATOR)) {
|
||||||
const params = getURLParams();
|
const params = getURLParams();
|
||||||
if (this.pageIdentifier in params) {
|
if (this.pageIdentifier in params) {
|
||||||
|
|
Reference in a new issue