Refactoring: more css cleanup

This commit is contained in:
Pieter Vander Vennet 2023-04-21 18:09:14 +02:00
parent 4548689a28
commit 59544ec073
8 changed files with 13 additions and 53 deletions

View file

@ -14,6 +14,7 @@ export default abstract class BaseUIElement {
public onClick(f: () => void) {
this._onClick = f
this.SetClass("cursor-pointer")
if (this._constructedHtmlElement !== undefined) {
this._constructedHtmlElement.onclick = f
}