diff --git a/nicegui/elements/echart.js b/nicegui/elements/echart.js index 911100f74..b447f7c25 100644 --- a/nicegui/elements/echart.js +++ b/nicegui/elements/echart.js @@ -4,7 +4,7 @@ import { convertDynamicProperties } from "../../static/utils/dynamic_properties. export default { template: "
", async mounted() { - await this.$nextTick(); // wait for Tailwind classes to be applied + await new Promise((resolve) => setTimeout(resolve, 0)); // wait for Tailwind classes to be applied if (this.enable_3d) { await import("echarts-gl"); }