-
Notifications
You must be signed in to change notification settings - Fork 108
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
Add cssRule #201
Comments
@henkeklein Thanks for the issue! I tried to run different demos with angular-ui-scroll v1.7.0 on Chrome v65.0.3325.181 and didn't see any issues with What version of the ui-scroll are you using? what OS? What is the full error message? How many scroller instances do you have on the page that fails with that error? Maybe you can provide a runnable repro? Also, this topic may be helpful... |
So just saw that I am using v1.6.2 so maybe the problem will disappear just upgrading. I have only 1 instances on the page egen is fails. Thanka for the advice! |
@henkeklein I believe, |
I'm having the exact same problem on Windows x64. Chrome (Versión 65.0.3325.181). The error only appears occasionally, after I transition from another state (it does not happen when I hit F5 to refresh the page).
I'm currently using the 1.7.0 version of ui-scroll. As a dirty fix I've just added
To one of my stylesheets, while commenting the call to addCSSRule:
|
@PabloMR92 Thanks for the details! If the bug appears only during state transitions (ui-router?) and does not appear on the App start, then I know how I will fix it. @henkeklein Can you confirm that you don't see the issue right after the App start too? |
Exactly, it does not appear on App start only after state transitions. |
Okay! Here's the Pull Request with the issue fix: Add css rules on the App start. |
Works like a charm, thank you very much! |
v1.7.1 has just been released, and soon it will be available via npm. |
Thanks a lot, problem solved :)! |
Error: Failed to execute 'insertRule' on 'CSSStyleSheet in Chrome v65.
Issue in ui-scroll.js: funtion addCSSRule
Solution: Simply surround with try/ catch?
The text was updated successfully, but these errors were encountered: