Hi, I’ve used the example in this help page to make a simple message exchange between the page and the component, but I can’t make it work.
My task is loading other products as “variants” into a product page (these variants are related to few main products and there’s a need for single inventory management for all the variants), I want to pass to the HTML component the products array it needs to render, and send back to the page the selected product.
What I’ve managed to do is hook the postMessage method to an onClick event, the HTML component did modify innerHTML as written in the help page but it didn’t send a message back to parent.
Thoughts?
Thanks