drop target is not enabled for parsys when included using resourcetype inclusion in htl
Hello Members,
I am trying to include parsys in my component to make way for authors to configure a component of their choice. But when this component is included in another component ( cascade include ) , the drop target does not get enabled unless dialog is opened and closed once. Most likely it expects the dialog open and close events to be fired before it enables itself. not sure how do I do that in my code.
I included the parsys like below :
<sly data-sly-resource="${'par' @@ resourceType=wcm/foundation/components/parsys'}"></sly>
root container
|--- parent component ( includes child )
|--- child component ( includes grand child which has parsys in it )
|--- grand child ( has parsys in its htl, by using resourcetype usage
I tried enabling the components at template level using policy but not sure if it its the correct solution , but I read a similar thread here and tried that. I think re-design will be an option I will think of but before that I wanted to understand is this a limitation or I am doing something wrong.
Please suggest.
Regards
Shailesh
P.S. its AEM 6.5 with latest service pack.