TreeGrid don't expand items after removing any leaf

Hi! I’m using Vaadin 14. My TreeGrid’s behavior seems incorrect. After removing any leaf, root items aren’t expanded.
After refreshing of page, all works fine.

If your remove child / leaf you need to apply refreshItem(item, true) to parent to resync the hierarchy.

I were already try it. No success. Moreover, if I clear and update my TreeData from backEnd after removing, TreeGrid’s behavior remains incorrect. Sorry for my english.

When I remove root items - there are no problem.

Thank you, Tatu! I wrote refreshItem(…) and refreshAll() after that. Whithout refreshAll() there is no problem!

Mmmm… But without refreshAll() removed item is still in the grid…