Browse Source

element: Call super.disconnectedCallback

JC Brand 4 năm trước cách đây
mục cha
commit
4ebd3caf48
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/components/element.js

+ 1 - 0
src/components/element.js

@@ -15,6 +15,7 @@ export class CustomElement extends LitElement {
     }
 
     disconnectedCallback () {
+        super.disconnectedCallback();
         this.stopListening();
     }
 }