Closed zoglo closed 1 year ago
This PR fixes the issue with empty table elements appearing when using the ajaxform.
As seen here, the option has been removed in 2015: https://github.com/contao/core-bundle/commit/e5b89517a4f250d9c5a874ba1e23364afe23aae9
In the past, we've encountered a few issues where our styles would show an empty
<table></table> after the form.
<table></table>
This has happened when updating to PHP8.*.
The reason is that the option $this->tableless is not given; thus the forms will get wrapped by a
$this->tableless
divs etc.
thank you @zoglo
What does this PR fix?
This PR fixes the issue with empty table elements appearing when using the ajaxform.
Reason for removing it:
As seen here, the option has been removed in 2015: https://github.com/contao/core-bundle/commit/e5b89517a4f250d9c5a874ba1e23364afe23aae9
Explain the bug:
In the past, we've encountered a few issues where our styles would show an empty
<table></table>
after the form.This has happened when updating to PHP8.*.
The reason is that the option
$this->tableless
is not given; thus the forms will get wrapped by adivs etc.
, the browser won't validate it correctly and moves the empty<table></table>
block below:thank you @zoglo