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

Tether attachment doesn't reset when changing views in AngularJS #8

Open
riteshjagga opened this issue May 23, 2016 · 2 comments
Open

Comments

@riteshjagga
Copy link

riteshjagga commented May 23, 2016

Please see the plnkr for the issue http://plnkr.co/edit/TUjX43?p=preview.

I have a tethered element which is attached to the header of View 1 which sticks to the top of the window when scrolled down. When changing view to View 2, the tethered attachment sticks around and doesn't disappear. It goes away when View 2 is scrolled.

I think that's because changing view is happening within the single page application's html file and actual scroll didn't happen.

Please let me know how to reset tether when changing views.

@jeffling
Copy link
Owner

jeffling commented May 23, 2016

I'm not sure i fully understand your bug. Your plnkr does not work for me, so I can't replicate it there.

To reset tether, you can get a reference to tether like so jl-tether="ngTetherReference". With that reference, you can do as you like on various events using what's in the native tether API!

Please let me know if you need any assistance, or if there is anything you would expect this directive to automatically do for you.

As always, PRs are super welcome!

@riteshjagga
Copy link
Author

You can click the Live Preview eye icon on the right side if right side panel is not appearing and then click the green refresh button in the top-right whose tooltip says Manually trigger a refresh....

Please let me know if it still doesn't work.

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