RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Calling loadSpec() doesn't update the Download or View links

Open ianjevans opened this issue 2 years ago • 0 comments

If you load a different spec programmatically using loadSpec() the Download OpenAPI Spec and View OpenAPI Spec (New Tab) buttons don't update the spec target.

So if you initially load A.json, then call loadSpec() to call B.json, the download/view buttons will download/view A.json.

Calling setAttribute('spec-url', url) works correctly.

ianjevans avatar Feb 14 '23 21:02 ianjevans