diff --git a/src/Bridge/Symfony/Bundle/Resources/public/init-swagger-ui.js b/src/Bridge/Symfony/Bundle/Resources/public/init-swagger-ui.js index 051ce1f89f7..c8b81277782 100644 --- a/src/Bridge/Symfony/Bundle/Resources/public/init-swagger-ui.js +++ b/src/Bridge/Symfony/Bundle/Resources/public/init-swagger-ui.js @@ -60,8 +60,11 @@ window.onload = () => { } } - op.querySelector('.execute').click(); - op.scrollIntoView(); + // Wait input values to be populated before executing the query + setTimeout(function(){ + op.querySelector('.execute').click(); + op.scrollIntoView(); + }, 500); }); tryOutObserver.observe(document, {childList: true, subtree: true});