Closed michaelbukachi closed 7 years ago
Thank you for this questions.
The problem is that you embed the same app twice with the same name data-embed='Embedded'
.
Open the dependencies and rename the variable for the import to Embedded1
. Rename the variable in the HTML. Delete the second embed. Drag and drop the Micro App to be embedded on the form again. Give the variable name Embedded2
.
We added that the preview will show an error if the same variable name is used twice for a Micro App and updated the documentation.
Okay. Got it. Thanks
So I'm trying to set the ID of an element inside an embedded app. But it seems not to isolate the element. For some strange reason, every element with the matching selector receives the same ID. I did a test with the following snippets and was able to replicate the bug. Here's the code for the main app:
Here's the code for the embedded app:
And the javascript:
Here's the result I get when I preview the app![screenshot from 2017-08-10 20-53-12](https://user-images.githubusercontent.com/10145850/29184424-ceaa5714-7e0e-11e7-8b50-174245b02e70.png)
From the screenshot you can see that those two embedded apps are sharing the same id.