diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts index d385c1f607a2244755e3d2b57d67836f46c8d5e6..2635777d6a663d5e54f64f88252c2224874c035a 100644 --- a/src/app/components/generic-calculator/calculator.component.ts +++ b/src/app/components/generic-calculator/calculator.component.ts @@ -1,7 +1,7 @@ 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; }