-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
Hi!
I am integrating Swagger Ui with a developer portal using Barba.js and having some issues instantiating Swagger Ui.
I want to start instantiating Swagger Ui as soon as a a new page is loaded, and my issue arises from the fact that the old page is still in the DOM.
As of now I have wait until the old DOM is unloaded before ininstantiating Swagger Ui because there is two divs with the same id during the transition, and since SwaggerUIBundle accepts only a dom_id i have found no reliable way of selecting the correct one without modifying its attributes.
Is it possible to pass a DOM element to SwaggerUIBundle instead of an id of one to avoid this issue?