Widgets with Nesting Slots resetting on Compile

Hello Devs!

I’ve been banging my head against an issue with Widgets today and I am not sure whether if this is a bug or it is simply something that I shouldn’t do.

So, here’s the situation: I have a base widget that only contains an overlay with an image and a named slot, let’s call it W_Base_1:
image

Then, I create a second widget that INHERITS from W_Base_1, called W_Base_2, that uses the parent’s slot to add a similar setup:

image

So far so good. Now, I create a new widget called W_Test, that only has an instance of W_Base_2, and everything shows as it should. HOWEVER, and here’s the issue, whenever I add something to the slot coming from W_Base_2, the content disappears on compile:
image

I can add stuff as usual, but when I hit compile, it just resets. I thought it may’ve been because of my setup, but I created a dummy scenario with the minimum setup and the error still occurs. Is it a bug, or Named Slots aren’t meant to be used like this?

I am on a custom version of 5.2.

1 Like