Skip to content

Commit

Permalink
TOS-684 The added element is not displayed at the first in the list a…
Browse files Browse the repository at this point in the history
…nd also not higlighted in the mobile inspector when we try clicking on the added element even before creating the step (#132)
  • Loading branch information
Raksha-testsigma committed Sep 6, 2022
1 parent e37de8e commit ad0901c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ActionStepFormComponent extends BaseComponent implements OnInit {
@Input('isDryRun') isDryRun: boolean;
@Output('onSuggestion') public onSuggestion = new EventEmitter<any>();
@Optional() @Input('conditionTypeChange') conditionTypeChange: TestStepConditionType;

@ViewChild('searchInput') searchInput: ElementRef;
@ViewChild('replacer') replacer: ElementRef;
@ViewChild('actionsDropDownContainer') actionsDropDownContainer: ElementRef;
Expand Down Expand Up @@ -1336,8 +1336,10 @@ export class ActionStepFormComponent extends BaseComponent implements OnInit {
private assignElement(elementName, targetElement?) {
this.showTemplates = false;
if (elementName) {
if (elementName && elementName.length)
if (elementName && elementName.length) {
targetElement.innerHTML = elementName;
this.selectedElementName = elementName;
}
if (this.testDataPlaceholder()?.length && !this.isEdit) {
this.testDataPlaceholder()?.[this.currentDataItemIndex || 0]?.click();
this.selectTestDataPlaceholder();
Expand Down

0 comments on commit ad0901c

Please sign in to comment.