forked from MapComplete/MapComplete
Huge refactoring: split readonly and writable stores
This commit is contained in:
parent
0946d8ac9c
commit
4283b76f36
95 changed files with 819 additions and 625 deletions
|
@ -21,7 +21,7 @@ export default class InputElementMap<T, X> extends InputElement<X> {
|
|||
this.toX = toX;
|
||||
this._inputElement = inputElement;
|
||||
const self = this;
|
||||
this._value = inputElement.GetValue().map(
|
||||
this._value = inputElement.GetValue().sync(
|
||||
(t => {
|
||||
const newX = toX(t);
|
||||
const currentX = self.GetValue()?.data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue