Closed jaichandra closed 7 years ago
Confirmed. See point five of section 2.2 of the spec.
/cc @cdata
my 2 cents is that changing that to connectedCallback
is fine
Changing it to connectedCallback
didn't work for me (the error went away but the style's weren't added). I had to change it to attached
.
@justincy thats correct. I have the PR with attached
here #145
Closing, as we're no longer adding the paper-material
class on the host
Description
With the latest 2.0-preview branch, if I do
document.createElement('paper-button');
, I am getting a DOMException.This seems to be caused by the below code in
paper-button
.Changing that to use
connectedCallback
seems to fix the issue.Expected outcome
No Error
Actual outcome
DOMException:
Live Demo
Steps to reproduce
Browsers Affected