Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix. SiteScriptTagHelper for OnbootstrapModalShown #80

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Jun 21, 2023

Attaching the event listener to document.currentScript instead of document ensures, that the event will not target a deleted element: If the script element gets removed, no more events will fire.

Using document.addEventListener('shown.bs.modal',...) was leading to Exceptions in Bootstrap code.

Attaching the event listener to document.currentScript instead of document ensures, that the event will not target a deleted element:
If the script element gets removed, no more events will fire.

Using document.addEventListener('shown.bs.modal',...) was leading to Exceptions in Bootstrap code.
@axunonb axunonb merged commit 7e35446 into main Jun 21, 2023
@axunonb axunonb deleted the pr/site-script-taghelper branch June 21, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant