diff --git a/src/UI/BaseUIElement.ts b/src/UI/BaseUIElement.ts index f80165173..41db9a8a1 100644 --- a/src/UI/BaseUIElement.ts +++ b/src/UI/BaseUIElement.ts @@ -11,7 +11,6 @@ export default abstract class BaseUIElement { protected isDestroyed = false protected readonly clss: Set = new Set() protected style: string - private _onClick: () => void | Promise /** * Adds all the relevant classes, space separated @@ -80,22 +79,6 @@ export default abstract class BaseUIElement { } } - if (this._onClick !== undefined) { - const self = this - el.onclick = async (e) => { - // @ts-ignore - if (e.consumed) { - return - } - const v = self._onClick() - if (typeof v === "object") { - await v - } - // @ts-ignore - e.consumed = true - } - el.classList.add("cursor-pointer") - } return el } catch (e) {