From 9ce295b75e665db26aa6fa1f74f8f98f5ac968a6 Mon Sep 17 00:00:00 2001 From: "mathias.chouet" <mathias.chouet@irstea.fr> Date: Wed, 27 Mar 2019 13:59:49 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20bug=20passage=20du=20mode=20LI?= =?UTF-8?q?=C3=89=20au=20mode=20CALC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/generic-calculator/calculator.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/components/generic-calculator/calculator.component.ts b/src/app/components/generic-calculator/calculator.component.ts index d385c1f60..2635777d6 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; } -- GitLab