Skip to content

Commit

Permalink
Fix highlighter on tab click
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill committed Sep 4, 2024
1 parent d762323 commit afe1a0a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/js/13-open-nested-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,8 @@
url.hash = id;
url.searchParams.set('tab', id);
window.history.pushState(null, null, url);
setTimeout(function() {
requestIdleCallback(function() {
debouncedHighlightAll();
debouncedAddPencilSpans();
});
}, 0);
debouncedHighlightAll();
debouncedAddPencilSpans();
}, true);
});
});
Expand Down

0 comments on commit afe1a0a

Please sign in to comment.