Legend dijit group layers bug

Discussion created by kdoman on May 26, 2011
I'm using the legend dijit used in http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_legendvisible.html, and I'm having an issue.

I have a map with multiple group layers, and I'm trying to style my group layer headings a certain way, using the esriLegendGroupLayer css class. When the legend renders, the first group layer title heading doesn't have the group layer style, but the other group layer headings do.

Looking at the HTML, I noticed that the first _group div doesn't have the esriLegendGroupLayer class, but all the other ones do.