Slot height reset from "hug" to "fixed" everytime I change its device variant within a big molecule component

Hi Everyone,

I have a problem with replacing slots within a larger molecule component. I’ve built a complex component designed to be highly customizable. There are 6 slots that can be replaced by 8 pre-defined components (atoms or smaller molecules, each with desktop and mobile variants). Additionally, this molecule has both desktop and mobile variants.

All slot widths are set to fill the container, and their heights hug the content. Therefore, in theory, the replaced slot should adjust to the height of the replaced component. While this works initially, changing the device variant of the molecule and then a single slot item changes its height from “hug content” to “fixed size,” which messes up the autolayout. If this is unclear, please see the attached video: Dropbox

I even tried recreating this molecule from scratch, but the problem persists. Any ideas on what I might be doing wrong, or could this be a bug in Figma?

One more thing to add: I can dive into the molecule, select all components within, and set them back to “hug content,” but it’s annoying to have to do this regularly. It should work like this.