tnicola / ngx-joyride

Angular Joyride/Tour library
https://tnicola.github.io/ngx-joyride/
MIT License
245 stars 97 forks source link

Joyride step appearing on top-left corner #696

Open sarita09 opened 2 years ago

sarita09 commented 2 years ago

I have a component and using on page like this <app-issues *ngFor="let issue of issueLists; let first=index;" [data]="issue" [firstEle]="first"></app-issues>

Each instance of this component have dropdown. I am targeting first instance's dropdown for the joyride steps like this

<select [joyrideStep]="firstEle === 0 ? 'issue2' : 'dummy'" [stepContent]="firstEle === 0 ? stepContentIssue2 : null" [title]="firstEle === 0 ? 'Raise An Issue' : null">
      <option value="active">Active</option>
      <option value="resolved">Resolved</option>
      <option value="irrelevant">Irrelevant</option>

    </select>

This is working fine as you can see below localhost_4200_dashboard_projects_boards_60d05c0d7c00f0414e3b2e26_issues_project

Now if I delete the first instance from this component list, the joyride step is not targeting to new first instance instead its appearing on top-left corner.

localhost_4200_dashboard_projects_boards_60d05c0d7c00f0414e3b2e26_issues_project (1)

I am using angular: 7.2.15 ngx-joyride: 2.2.9