When updating the dataset associated with an existing Handlebar chart, all the previous HTML and CSS gets lost #32049
Labels
preset:bounty:bug
Bugs that have been selected by Preset and have a bounty attached.
preset:bounty
Issues that have been selected by Preset and have a bounty attached.
viz:charts:handlebars
Bug description
When you have an existing Handlebar chart with personalized HTML and CSS code, if you update the dataset that powers the chart, all the previous HTML and CSS get removed.
How to reproduce the bug
select * from YourTable
Expected results
Your dataset gets updated and you have the same previous HTML and CSS applied to your handlebars chart
Actual results
Your dataset gets updated but all the previous HTML and CSS code you had gets lost. It also seems that the textarea "blinks" going back and forth between states.
Screenshots/recordings
Superset version
master / latest-dev
Python version
3.9
Node version
18 or greater
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: