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
JS Error Backend if id="main" is not present #5136
Comments
... I just see that the error does not occur under 5.x! In 4.13 the correct way would be as follows: {% extends "@ContaoCore/Backend/be_page.html.twig" %} It only matters if you want to keep the extension for 4.13 and 5.0. |
It's probably caused by the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
In this case we could simply change contao/core-bundle/src/Resources/public/core.js Line 2700 in 5e17a4a
var edit = $(document.querySelector('#main .tl_formbody_edit')); |
Why did you wrap the |
Because it is used as a mootools element further down and |
Affected version(s)
4.13
Description
Hello,
i don´t really know if it´s a bug but rendering a custom Twig-BackendTemplate using the AbstractBackendController the core.js always always expects a div with id="main"
Error:
So if you use a template such as
the error occurs.
I think that you don't necessarily have to have the main with your own controller, do you?
Greetings
The text was updated successfully, but these errors were encountered: