-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Milestone
Description
Description
super.disconnectedCallback() having been removed from LitElement puts pressure on the element developer to make a clear decision as to how to address the possible presence of this method at various extension and mixin levels. Further, it makes for the possibility that there would need to be a future breaking change in LitElement where core functionality needed in this callback.
Live Demo
https://glitch.com/edit/#!/five-latex?path=index.html:39:50
Steps to Reproduce
- Create an element
- Add a
disconnectedCallbackmethod. - Call
super.disconnectedCallback()in it. - Disconnect the element and see the error.
Expected Results
No error. Or clear documentation of the approach to this.
Actual Results
Uncaught TypeError: (intermediate value).disconnectedCallback is not a function
at HTMLElement.disconnectedCallback ((index):25)
at (index):36
Browsers Affected
- Chrome
- Firefox
- Edge
- Safari 11
- Safari 10
- IE 11
Versions
- lit-element: ^0.6.0
- webcomponents: latest
markcellus and cstsortan