You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When turning on instant loading from mkdocs material and the first page that is visited does not contain any swagger ui tags, the resize handler breaks, since the function is not defined on the parent page.
plugins:
- swagger-ui-tag
theme:
name: material
features:
- navigation.instant
This is the error that is raised:
Uncaught TypeError: parent.update_swagger_ui_iframe_height is not a function
at ResizeObserver.<anonymous> (swagger-df07ce82.html:69:14)
It is not a race condition, since the update_swagger_ui_iframe_height is never defined. Once a full page refresh is done, the function is there again, and subsequent pages will have it.
The current workaround for us is to disable navigation.instant, but could this be solved in a better way?
Thanks for creating this 💚
Cheers
Andi
The text was updated successfully, but these errors were encountered:
When turning on instant loading from mkdocs material and the first page that is visited does not contain any swagger ui tags, the resize handler breaks, since the function is not defined on the parent page.
This is the error that is raised:
It is not a race condition, since the
update_swagger_ui_iframe_height
is never defined. Once a full page refresh is done, the function is there again, and subsequent pages will have it.The current workaround for us is to disable
navigation.instant
, but could this be solved in a better way?Thanks for creating this 💚
Cheers
Andi
The text was updated successfully, but these errors were encountered: