Kuba Šimonovský
Kuba Šimonovský

Reputation: 2043

Does paper-dialog-scrollable works in shady dom?

I was trying to make my paper-dialog scrollable using paper-dialog-scrollable but i can't make it work.. I tried to simplify my code as much as possible, containing almost only ctrl+c and ctrl+v code from demo on github.

https://github.com/PolymerElements/paper-dialog-scrollable/blob/master/demo/index.html

But it seems like paper-dialog-scrollable isn't doing anything at all. (behave like it hasn't any logic and is simple element) The only thing that is different from demo page is that I am using shady dom instead of shadow.. (BTW, yes, I imported file into my project)

Anyone faced the same problem? Is there anyone who is using this element in shady dom and how?

Upvotes: 0

Views: 115

Answers (1)

tony19
tony19

Reputation: 138256

Yes, <paper-dialog-scrollable> works in Shady DOM. The element's usage is the same for Shady DOM and Shadow DOM.

Here are working Codepens of the element's demo code:

Upvotes: 1

Related Questions