Skip to content
Snippets Groups Projects
Commit ec03eb10 authored by mathias.chouet's avatar mathias.chouet
Browse files

Désérialisation des <select> : mini modif

parent 82a98af7
No related branches found
No related tags found
1 merge request!35Resolve "La sauvegarde des modules de calcul n'enregistre pas les valeurs courantes des paramètres, mais les valeurs par défaut !"
......@@ -43,6 +43,7 @@ export class SelectField extends Field {
public setValue(v: SelectEntry) {
if (this._selectedEntry !== v) {
console.log("++++ select field : notify observers", v);
this._selectedEntry = v;
this.notifyObservers({
"action": "select",
......@@ -145,7 +146,7 @@ export class SelectField extends Field {
const sel = elements[k];
for (const e of this._entries) {
if (e.id === sel) {
this._selectedEntry = e;
this.setValue(e);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment