Commit 9ce295b7 authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Correction bug passage du mode LIÉ au mode CALC

Showing with 4 additions and 2 deletions
+4 -2
import { Component, OnInit, DoCheck, OnDestroy, ViewChild, ViewChildren, QueryList, AfterViewChecked } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { Observer, Session } from "jalhyd";
import { Observer, Session, ParamValueMode } from "jalhyd";
import { FormulaireService } from "../../services/formulaire/formulaire.service";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
......@@ -191,7 +191,9 @@ export class GenericCalculatorComponent extends BaseComponent implements OnInit,
* gestion des événements clic sur les radios
*/
public onRadioClick(info: any) {
this.updateLinkedParameters();
if (info.param.valueMode === ParamValueMode.LINK) {
this.updateLinkedParameters(); // only when switching to LINK mode
}
this._pendingRadioClick = true;
this._pendingRadioClickInfo = info;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment