Weird partial behavior - explanation needed or bug

Wappler 6.8.0 | NodeJS | Docker

I've created a blank project for NodeJS with layout page.
I've created a partial that contain of one Dynamic Modal.
I've added partial to my content page.
I want on button click show that modal.
In Data Binding - I can't see this Modal to be available.
<%- await include('/partials/modal', Object.assign({}, locals)) %>

In same time if I add this same include in to layout page I'm able to browse My modal from content page and Show action works.

Just thinking, what if you add a modal on the content page and delete it? Maybe it needs dmxModal on the <Wappler include... > tag?

That is how I would do it, then there is no need for a partial.

@patrick @George May I ask comments from your side?

Give your partial the same App ID as the layout page. It should then pickup the modal and other elements from the layout page in Data Bindings.

This works for layout and content pages, not sure about partials