Skip to content

Commit 9f3bd31

Browse files
committed
fix: add missing calls to super in navlink JS
1 parent e214ff7 commit 9f3bd31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/components/bolt-navlink/navlink.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class BoltNavLink extends withLitHtml() {
133133
}
134134

135135
connecting() {
136+
super.connecting && super.connecting();
136137
this.addEventListener('click', this.onClick);
137138

138139
this._shadowLink = this.querySelector('a');
@@ -149,6 +150,7 @@ class BoltNavLink extends withLitHtml() {
149150
}
150151

151152
disconnecting() {
153+
super.disconnecting && super.disconnecting();
152154
this.removeEventListener('click', this.onClick);
153155
}
154156
}

0 commit comments

Comments
 (0)