S-stack/s-box/s-grid not accepted as s-table child in filters slot

I’m getting this warning with s-stack as a container for the filters slot:

polaris-2.js:2 polaris: ​…​​custom-element - Invalid child <s-stack slot=​"filters" gap=​"small-300" padding=​"none">​…​​custom-

s-box and s-grid also have this issue. There is no issue with the rendering or hydration. s-div does not give a warning – but this shouldn’t be necessary, right?

Hey @_Ryan , thanks for reporting this.

We can confirm that <s-div> shouldn’t be necessary here. <s-stack> , <s-grid> and <s-box> are all valid containers for the table’s filters slot.

This is a timing issue when React 18 mounts the components. <s-table> can check its children just before React applies slot="filters", causing the false warning. The slot is applied immediately afterward, so everything still renders normally.

A fix has been merged but hasn’t reached the current polaris-2.js CDN build yet. There’s nothing you need to change, the warning is safe to ignore. You can use <s-div> temporarily for a clean console, but it isn’t required.