forked from MapComplete/MapComplete
Refactoring: more css cleanup
This commit is contained in:
parent
4548689a28
commit
59544ec073
8 changed files with 13 additions and 53 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue