diff --git a/wpn-utils/wpn-detail-view.ts b/wpn-utils/wpn-detail-view.ts index 9f1921f..391ac3e 100644 --- a/wpn-utils/wpn-detail-view.ts +++ b/wpn-utils/wpn-detail-view.ts @@ -39,6 +39,8 @@ class WPNDetailView extends HTMLElement { detailElement.classList.add('d-none'); }) } + } else { + this.classList.add("d-none"); } } diff --git a/wpn-utils/wpn-entity.ts b/wpn-utils/wpn-entity.ts index 5633f7f..e209899 100644 --- a/wpn-utils/wpn-entity.ts +++ b/wpn-utils/wpn-entity.ts @@ -5,7 +5,8 @@ class WPNEntity extends HTMLElement { return attributeValue === 'false' ? false : true; } - clickHandler = (e: MouseEvent) =>{ + clickHandler = (e: MouseEvent) =>{ + window.location.hash = ""; const targetId = this.hasAttribute("data-prev") ? this.getAttribute("data-prev") : this.getAttribute("id"); const annotationClassName = Array.from(this.classList).find(className => className.startsWith("annot_")); if (annotationClassName) {