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

Diagram.addTo() doesn't find the right <script> tag for <script type=module> #108

Open
RossPatterson opened this issue Jan 10, 2024 · 0 comments

Comments

@RossPatterson
Copy link
Contributor

When using the Diagram.addTo() method in railroad.js without specifying a target element, the method cannot determine the correct <script> tag if the tag has type=module coded. This is because ES Module scripts, even in-line ones, are forced to be <script defer>, causing them to be run out of order, making the code that locates the <script> tag locate the wrong one.

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

No branches or pull requests

1 participant