Instantiated UI elements not rendering on canvas

I have a inventory screen that will upon start instantiate the inventory slots. The problem I’m having is by default the canvas component of the canvas game object is set to disabled. When I then re-enabled the canvas component upon opening the inventory, the instatiated elements don’t render, but all the other elements do. Any ideas on how to fix this?

What if you disable and re-enable the inventory slot AFTER you enable the canvas?