Skip to content
Snippets Groups Projects
Commit ac851447 authored by David Dorchies's avatar David Dorchies
Browse files

fix(PreBarrage): loss of focus on input with existing result

- remove unselection of the child on schema refresh
- add unselection on remove child action to focus on the parent when a child is removed

Refs #469
parent ea4ed26b
No related branches found
No related tags found
1 merge request!111Resolve "PréBarrages : Perte du focus lorsqu'on édite un paramètre d'un enfant (cloison ou bassin)"
...@@ -451,6 +451,7 @@ export class PbSchemaComponent implements AfterViewInit, AfterContentInit, OnIni ...@@ -451,6 +451,7 @@ export class PbSchemaComponent implements AfterViewInit, AfterContentInit, OnIni
} }
} }
this.clearResults(); this.clearResults();
this.unselect();
this.refreshWithSelection(); this.refreshWithSelection();
this.calculatorComponent.showPBInputData = true; this.calculatorComponent.showPBInputData = true;
} }
...@@ -668,7 +669,6 @@ export class PbSchemaComponent implements AfterViewInit, AfterContentInit, OnIni ...@@ -668,7 +669,6 @@ export class PbSchemaComponent implements AfterViewInit, AfterContentInit, OnIni
console.debug(`PbSchemaComponent.refreshWithSelection(${uid})`); console.debug(`PbSchemaComponent.refreshWithSelection(${uid})`);
// remember previously selected node // remember previously selected node
const selectedNodeUID = this._selectedItem?.uid; const selectedNodeUID = this._selectedItem?.uid;
this.unselect();
this.refresh(); this.refresh();
// select a specific node on the schema // select a specific node on the schema
if (uid !== undefined) { if (uid !== undefined) {
......
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