hi
i had use syncfusion diagram with pallet and this is the scenario :
1- im dragging a native node from the pallet into diagram
2- collapsing pallet category
3- now my shape will lose fill attribute
please check pictures :
and now please check the second picture :

i have checked the reason and i found out why this is happening
when there is some linearGradient in the svg and it used with url like below :
fill:url('#gradientId')
it will add to the pallet which is come before diagram in DOM tree
it means when im dragging a shape into diagram all url(#gradientId) are looking to the same shape in tha pallet becuase its declared upper
and after collapsing a category in pallet , the related div tag gives this class :
.e-accordion .e-acrdn-item .e-content-hide {
display: none; }
when display is none and other shapes url are looking for linearGradient tag which is in the hidden div they will lost fill attribute
i hope i explained good
regards Alireza