Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redoc.init callback not called in release v2.0.0-rc.54 #1686

Closed
miguelb opened this issue Jul 14, 2021 · 1 comment
Closed

Redoc.init callback not called in release v2.0.0-rc.54 #1686

miguelb opened this issue Jul 14, 2021 · 1 comment

Comments

@miguelb
Copy link

miguelb commented Jul 14, 2021

When using Redoc.init, callback function is no longer being called in release v2.0.0-rc.54. This seems to have been introduced in this release, as it works in release v2.0.0-rc.53.

Below is a simple example showing the issue. If you swap the release version to 53, the callback function does get called.

<!DOCTYPE html>
<html>
<body>
<redoc scroll-y-offset="body > nav"></redoc>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/bundles/redoc.standalone.js"></script>
<script>
    var docs = 'http://redocly.github.io/redoc/openapi.yaml';
    var options = {};
    Redoc.init(docs, options, undefined, function () {
        alert('callback called')
    });
</script>
</body>
</html>
@AlexVarchuk
Copy link
Collaborator

@miguelb It works in the latest version. Try to use the latest version of redoc lib.

<script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants