geido opened a new issue, #32049:
URL: https://github.com/apache/superset/issues/32049

   ### Bug description
   
   ## 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
   1. Create a virtual dataset with something simple like `select * from 
YourTable`
   2. Create a handlebar chart with that dataset and add some HTML and CSS code 
in the customize section
   3. From the Chart section, click on the 3 dots on the left and “edit 
dataset” 
   4. Change the query by adding a where clause or any other change you want.
   5. Save the dataset and click on “Update Chart”
   
   ## 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
   
   
![Image](https://github.com/user-attachments/assets/0290089a-de4b-4f57-a642-6f92a34a2c5b)
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to