Inherited widget disappears

When adding anything to child widget, inherited elements disappears. Why?