Skip to content

Commit

Permalink
Merge pull request #344 from Oksydan/bootstrap-components-dynamic-loa…
Browse files Browse the repository at this point in the history
…ding-fixes

Bootstrap components dynamic loading fixes
  • Loading branch information
Oksydan authored Nov 27, 2023
2 parents 3ac291f + 3ee07fc commit 62ca5cd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ const useBootstrapComponentDynamicImport = (importFiles, {
const handleEvent = async (e) => {
e.preventDefault();

if (filesLoaded || filesLoading) {
return;
}

await handleComponentLoad();

const { delegateTarget, type } = e;
Expand Down Expand Up @@ -253,6 +257,8 @@ const useBootstrapComponentDynamicImport = (importFiles, {
jQuerySetCallbackForElement(this, jQueryCreateCallbackObject(getJQueryComponentName(), args));

handleComponentLoad();

return this;
};
}

Expand Down

0 comments on commit 62ca5cd

Please sign in to comment.