Tooltip doesn't repaint the underlying components?

There seems to be some behavioural difference between Combobox’s menu vs. Tooltips and how they handle repainting of underlying components:

I draw some simple stuff with the following method:
Component::paintOverChildren(Graphics& g)

When I open Combobox’s pulldown menu and close it again, the above method’s output is visible on screen as it should: it’s been drawn just fine.

When I make the tooltip for that combobox appear and move mouse so the tooltip disappears, the paintOverChildren()'s output isn’t visible in the area where the tooltip was visible on screen just a moment ago.

What could be causing this behaviour? Is this a bug/feature in JUCE or in my code? I would assume tooltips handle these overdraw fixing situation automatically just like combobox’s appearing menu does?