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

Paper-Dialog on page load doesnt work in firefox. #761

Closed
bhaswanth88 opened this issue Sep 19, 2014 · 2 comments
Closed

Paper-Dialog on page load doesnt work in firefox. #761

bhaswanth88 opened this issue Sep 19, 2014 · 2 comments

Comments

@bhaswanth88
Copy link

Hi,
I am trying to load a paper-dialog on page load. It works perfectly in chrome, but in firefox it doesnt work. When I try to debug, it says toggle() is not a method. The same method works if I use a button to toggle the dialog in firefox. It would of good help, if someone can suggest me an alternative.

Thanks,
Bhaswanth G

@arthurevans
Copy link

When you say "on page load", are you waiting for the polymer-ready event? If not, the paper-dialog may not have been upgraded when you call toggle() on it. Polymer waits until all element definitions are available before registering elements, and this takes longer on platforms without native HTML Imports.

Can you supply some sample code?

@bhaswanth88
Copy link
Author

Hi, I am sorry. I did not try with polymer-ready event. I was using the normal events. I tried with polymer-ready now. It works fine in Chrome, Firefox & IE, but it is failing in Safari because my Safari browser is old and is not supported by polymer. Thanks again for helping, sorry for raising the bug.

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