JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Gantt Issue with Smart HTML Elements Gantt Chart in React – Data Not Expanding Correct Reply To: Issue with Smart HTML Elements Gantt Chart in React – Data Not Expanding Correct

#111245
Markov
Keymaster

Hi Vineet,

The issue is that when you switch like this, all properties of the Gantt are dynamically set instead of creating a new Gantt chart instance i.e the re-renders count is equal to the number of properties which you have. I would suggest you to use display: none or visibility: hidden if you want to show/hide a component.

Best regards,
Markov

Smart UI Team
https://www.htmlelements.com/