Skip to content

Commit

Permalink
Update initTE method - fixes scrollspy issue (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
juujisai authored Jul 19, 2023
1 parent 208b856 commit b49e94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/autoinit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const init = (components) => {
const initTE = (components, checkOtherImports = false) => {
const componentList = Object.keys(defaultInitSelectors).map((element) => {
const requireAutoinit = Boolean(
document.body.querySelector(defaultInitSelectors[element].selector)
document.querySelector(defaultInitSelectors[element].selector)
);
if (requireAutoinit) {
const component = components[defaultInitSelectors[element].name];
Expand Down

0 comments on commit b49e94b

Please sign in to comment.