Skip to content

Commit

Permalink
because of JS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Aug 19, 2024
1 parent 2aa747f commit d5a5766
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Fields/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static function js($id, $options)
window._formsjs_tableActionBinding(_element);
}
_formsjs_getTableRowTemplate = function (element) {
window._formsjs_getTableRowTemplate = function (element) {
let _config = JSON.parse(element.getAttribute('data-formsjs-onload-data'));
let _template = '';
let _id = element.getAttribute('name');
Expand All @@ -169,10 +169,10 @@ public static function js($id, $options)
return _template;
}
_formsjs_tableField = function (element) {
window._formsjs_tableField = function (element) {
if (! element.getAttribute('data-formsjs-rendered')) {
_tableRowTemplate = _formsjs_getTableRowTemplate(element);
_tableLastRow = new DOMParser().parseFromString(_tableRowTemplate, "text/html").body.firstElementChild;
var _tableRowTemplate = _formsjs_getTableRowTemplate(element);
var _tableLastRow = new DOMParser().parseFromString(_tableRowTemplate, "text/html").body.firstElementChild;
if (element.value) {
let _tableValue = JSON.parse(element.value);
Expand Down

0 comments on commit d5a5766

Please sign in to comment.