forked from MapComplete/MapComplete
Trying to get the checkboxlogic right
This commit is contained in:
parent
c944156d87
commit
e0f2f70c2e
7 changed files with 113 additions and 97 deletions
|
|
@ -95,8 +95,12 @@ export abstract class UIElement extends UIEventSource<string> {
|
|||
|
||||
return;
|
||||
}
|
||||
this.setData(this.lastInnerRender ?? this.InnerRender());
|
||||
element.innerHTML = this.data;
|
||||
const newRender = this.InnerRender();
|
||||
if (newRender !== this.lastInnerRender) {
|
||||
this.setData(this.InnerRender());
|
||||
element.innerHTML = this.data;
|
||||
this.lastInnerRender = newRender;
|
||||
}
|
||||
|
||||
if (this._hideIfEmpty) {
|
||||
if (element.innerHTML === "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue