Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active element not highlighted with ng-repeat #57

Open
swrocket opened this issue Nov 27, 2015 · 2 comments
Open

Active element not highlighted with ng-repeat #57

swrocket opened this issue Nov 27, 2015 · 2 comments

Comments

@swrocket
Copy link

I have a tour set up that work great except for this issue.
I have a bunch of panels that are rendered using ng-repeat. The second step of the tour is for the first of these panels.
The step shows up in the right place, but the panel is not highlighted; it's behind the backdrop.
The rest of the steps work as expected.
Any ideas?

TIA,

Andrew

@swrocket
Copy link
Author

Just as an update (but not really a solution)
I got it to work by adding a delay to the focusActiveElement

if (tourConfig.backDrop){
    $timeout(function () {
        focusActiveElement(targetElement);
    }, 300);
}

This allows angular to render the ng-repeat before the element is focus, but is flaky at best...

@asitpanda
Copy link

Hi Andrew,
I have same issue, but where to add this , is there a way to add outside angular-tour js file? From my app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants