We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2144577 commit 4b6c978Copy full SHA for 4b6c978
core/pfe-core/controllers/scroll-spy-controller.ts
@@ -163,7 +163,7 @@ export class ScrollSpyController implements ReactiveController {
163
const [entry] = [...this.#intersectionEntries].sort((a, b) => {
164
return b.boundingClientRect.y - a.boundingClientRect.y;
165
});
166
- link = this.#targetLinkMap.get(entry.target);
+ link = this.#targetLinkMap.get(entry?.target);
167
}
168
if (link) {
169
this.#setActive(link);
0 commit comments