Form:
Create main form with subform; Add Modal window field (custom) to subform.
Backend:
Click add subform. Click "select" on modal field
PHP 7.2.9 on IIS 8.5
Joomla 3.9.10
Found the possible solution in /layouts/joomla/modal/main.php, Line 86:
-->improper jQuery call for JS-added elements, so it will not be called on subform rows; should be:
$script[] = " $(this).on('show.bs.modal', '#" . $selector . "', function() {";
This solutions is almost working for me, just needed to fix another problem on line 120:
$script[] = " padding = document.getElementById('" . $selector . "').offsetTop,";
This throws an error document.getElementById() is null; I changed this code to the jQuery equialent:
$script[] = " padding = $('#" . $selector . "').offsetTop,";
Now its perfect working for me. Maybe this simple changes can be done for next release.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-27 04:42:39 |
Closed_By | ⇒ | alikon |
Thank you for raising this issue.
Joomla 3 is now in security only mode with no further bug fixes or new features.
As this issue doesn't relate to Joomla 4 it will now been closed.
If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24