mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+Create new beitrag
This commit is contained in:
@@ -102,6 +102,14 @@ export class ToolTip extends HTMLElement {
|
||||
|
||||
this.addEventListener("mouseenter", () => this._showTooltip());
|
||||
this.addEventListener("mouseleave", () => this._hideTooltip());
|
||||
this.addEventListener("pointerdown", () => this._forceHide());
|
||||
this.addEventListener("mousedown", () => this._forceHide());
|
||||
this.addEventListener("click", () => this._forceHide());
|
||||
this.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Enter" || event.key === " ") {
|
||||
this._forceHide();
|
||||
}
|
||||
});
|
||||
|
||||
if (this._dataTipElem) {
|
||||
this._observer = new MutationObserver(() => {
|
||||
|
||||
Reference in New Issue
Block a user