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

Fix #199 : ID uniques pour les <input> des PabCloisons

Showing with 2 additions and 2 deletions
+2 -2
import { Input, Output, EventEmitter, ChangeDetectorRef, OnChanges, ViewChild } from "@angular/core";
import { NgModel } from "@angular/forms";
import { BaseComponent } from "../base/base.component";
import { isNumeric, Structure } from "jalhyd";
import { isNumeric, Structure, PabCloisons } from "jalhyd";
import { FormulaireDefinition } from "../../formulaire/definition/form-definition";
import { NgParameter } from "../../formulaire/ngparam";
import { I18nService } from "../../services/internationalisation/internationalisation.service";
......@@ -46,7 +46,7 @@ export abstract class GenericInputComponent extends BaseComponent implements OnC
// if inside a nested Structure, prefix with Structure position
// to disambiguate
const nub = param.paramDefinition.parentNub;
if (nub && nub instanceof Structure) {
if (nub && (nub instanceof Structure || nub instanceof PabCloisons)) {
id = nub.findPositionInParent() + "_" + id;
}
}
......
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