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

Double init warning when running Turbo #22

Open
cernyjakub opened this issue Jan 29, 2024 · 0 comments
Open

Double init warning when running Turbo #22

cernyjakub opened this issue Jan 29, 2024 · 0 comments

Comments

@cernyjakub
Copy link

window.addEventListener('load', init_#{chart_id});

When running Turbo, both 'load' and 'turbo:load' events are fired on initial page load. This brings

[ECharts] There is a chart instance already initialized on the dom.

warning into the console. Maybe the event to use for init could be put into config, so we could use which one to use. under Turbo, using 'load' is not needed.

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