TreeTable bug?

It appears that TreeTable is not working. In the doc page:

https://vaadin.com/docs/-/part/framework/components/components-treetable.html

it correctly does not have expansion arrowheads to the left of Coffee, Tea, Bread and Cake. However when I run the code locally I get arrows indicating that there are child items under those, but there are none. Thanks!
29541.png

Hi,

try setChildrenAllowed(itemId, false) for the leaf nodes.

-Olli

Thanks, that fixed it. Maybe the example code can be updated too.

Yeah, for sure.

-Olli