Skip to content
Snippets Groups Projects
Commit 418a7ab6 authored by François Grand's avatar François Grand
Browse files

fix: predams: ExpressionChangedAfterItHasBeenCheckedError when clicking on a...

fix: predams: ExpressionChangedAfterItHasBeenCheckedError when clicking on a wall then on a basin on the graph

refs #522
parent c878e14c
No related branches found
No related tags found
1 merge request!166Resolve "Prébarrages: Regroupement de la saisie des bassins"
......@@ -22,10 +22,11 @@ export class BasinFieldsetContainerComponent extends FieldsetContainerComponent
protected onFieldsetListChange() {
// disable "add" button (and "how many children" select)
this._fieldsetComponents.forEach(fs => {
fs.showAddChildren = false;
fs.showMoveArrows = false;
});
setTimeout(() => // setTimeout to avoid ExpressionChangedAfterItHasBeenCheckedError
this._fieldsetComponents.forEach(fs => {
fs.showAddChildren = false;
fs.showMoveArrows = false;
}));
}
protected addSubNub(after: FieldSet, clone?: boolean): void {
......
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