# \[UE5.2.1, Bug report\] Widget elements disappear on widgets with inheritance

**URL:** <https://forums.unrealengine.com/t/ue5-2-1-bug-report-widget-elements-disappear-on-widgets-with-inheritance/1268047>\
**Category:** Issues and Bug Reporting\
**Tags:** inheritance, unreal-engine, bug-report, Widget, Blueprint, question, UMG\
**Created:** [August 21, 2023, 6:26pm UTC](https://forums.unrealengine.com/t/ue5-2-1-bug-report-widget-elements-disappear-on-widgets-with-inheritance/1268047 "2023-08-21T18:26:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![BOBtheROSS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOBtheROSS](https://forums.unrealengine.com/u/BOBtheROSS)\
**Post date:** [August 21, 2023, 6:26pm UTC](https://forums.unrealengine.com/t/ue5-2-1-bug-report-widget-elements-disappear-on-widgets-with-inheritance/1268047/1 "2023-08-21T18:26:36Z")

</div>

**Summary**  
if widget ‘A’ inherited from another widget, adding widget ‘A’ inside a widget and then adding widget elements to its NamedSlot, will result in the widget elments disappearing after saving and compiling (in that order).

**Steps to Reproduce**  
() is the parent class  
 is adding something in the Designer \>\> Hierachy tab (outliner)

1. create Widget1 (UserWidget) [add named\_slot1]
2. create Widget2 (Widget1) [add named\_slot2 to named\_slot1]
3. create NewWidget (UserWidget) [add Widget2]-\>[add Button to named\_slot2]
4. Save and compile (in that order)

**results**  
The Button disappears.

**expected**  
The Button stays.

**Comments**  
After adding the Button to the NamedSlot the Button name will be displayed next to the NamedSlot in the Hierarchy tab. After Saving it disappears.

I suspect this is a problem with the way inheritance is implemented on widgets in general, so I will link my other bug reports with a similar issues here:[[UE5.2.1, Bug report] References to widget elements break on 2nd level of widget inheritance](https://forums.unrealengine.com/t/ue5-2-1-bug-report-references-to-widget-elements-break-on-2nd-level-of-widget-inheritance/1268023)

> [@\[UE5.2.1, Bug report\] Editor crashes on duplicating widget element on second inheritance level](https://forums.unrealengine.com/t/ue5-2-1-bug-report-editor-crashes-on-duplicating-widget-element-on-second-inheritance-level/1268087):
>
> Summary If a widget has a second inheritance level, duplicating a widget element with Ctrl+D inside a NamedSlot (with an Overlay element added to have a potential slot), will crash the engine. Steps to Reproduce () is the parent class is adding something in the Designer \>\> Hierachy tab (outliner) create BaseWidget (UserWidget) [add NamedSlot named “N0”] create Child1 (BaseWidget) [add NamedSlot to N0 named “N1”] create Child2 (Child1) [add an Overlay to N1] [add a Button to the Overlay] Tr…

---

_[View the full topic](https://forums.unrealengine.com/t/ue5-2-1-bug-report-widget-elements-disappear-on-widgets-with-inheritance/1268047)._
