You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you detach a chart and update the title (or some other property) of one of its series, an error gets thrown and the chart no longer renders.
(This also happens if you attach the chart and update a series title before waiting for the chart-load event.)
The issue can manifest in the Dashboard component if you place Charts inside the widgets and then change the widgets' order:
No exception should be thrown while updating series of a detached chart
Minimal reproducible example
The following test in reattach.test.js would fail:
it('should change the series title of an unattached chart',async()=>{constseries=chart.querySelector('vaadin-chart-series');awaitoneEvent(chart,'chart-load');// Remove the chartwrapper.removeChild(chart);// Update the series titleseries.title='bar';// Reattach the chartwrapper.appendChild(chart);awaitoneEvent(chart,'chart-load');});
Steps to reproduce
Run the test case
Environment
Vaadin version(s): 24.6
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered:
Description
If you detach a chart and update the title (or some other property) of one of its series, an error gets thrown and the chart no longer renders.
(This also happens if you attach the chart and update a series title before waiting for the
chart-load
event.)The issue can manifest in the Dashboard component if you place Charts inside the widgets and then change the widgets' order:
Kapture.2024-11-08.at.12.56.24.mp4
This seems to be a regression from #7785
Expected outcome
No exception should be thrown while updating series of a detached chart
Minimal reproducible example
The following test in
reattach.test.js
would fail:Steps to reproduce
Run the test case
Environment
Vaadin version(s): 24.6
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: