function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VivoVivo 

Losing Styles when rerendering or using render inside components

Hi,

 

I am losing the CSS styling when I rerender any buttons or use the render= attribute inside components. Does anyone know why this is? I am reading at places that it is due to a loss of html5 tags on the component, but I am unsure how to fix it.

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
Sachi7Sachi7

If the buttons are styled via Javascript, please verify if the script gets executed after reRendering the buttons.

All Answers

Sachi7Sachi7

If the buttons are styled via Javascript, please verify if the script gets executed after reRendering the buttons.

This was selected as the best answer
VivoVivo

Yep that was exactly it, just figured it out earlier! Thanks!