I am getting such an error in datatable.
Uncaught TypeError: Cannot read properties of undefined (reading "innerHTML")
Hi ,
Glad to hear that. All the best with your projects!
Regards.
It was fixed when I updated list.js like this./dist/assets/js/custom/apps/subscriptions/list/list.js
"use strict";
var KTSubscriptionsList = function() {
var t, e, n, o, c, r
return {
init: function() {
(t = document.getElementById("kt_subscriptions_table")) && (t.querySelectorAll("tbody tr").forEach((t => {
const e = t.querySelectorAll("td")
})), (e = $(t).DataTable({
info: !1,
order: [],
pageLength: 10,
lengthChange: !1
})), document.querySelector("[data-kt-subscription-table-filter="search"]").addEventListener("keyup", (function(t) {
e.search(t.target.value).draw()
})), function() {
const t = document.querySelector("[data-kt-subscription-table-filter="form"]"),
n = t.querySelector("[data-kt-subscription-table-filter="filter"]"),
o = t.querySelector("[data-kt-subscription-table-filter="reset"]"),
c = t.querySelectorAll("select");
n.addEventListener("click", (function() {
var t = "";
c.forEach(((e, n) => {
e.value && "" !== e.value && (0 !== n && (t += " "), t += e.value)
})), e.search(t).draw()
})), o.addEventListener("click", (function() {
c.forEach(((t, e) => {
$(t).val(null).trigger("change")
})), e.search("").draw()
}))
}())
}
}
}();
KTUtil.onDOMContentLoaded((function() {
KTSubscriptionsList.init()
}));