Skip to content

In columncontrol field unecpected error thrown #17

@Th3Trig3rFac3

Description

@Th3Trig3rFac3

After typing anything into the columncontrol field to filter for, than pressing ctrl + L shift + home an error is thrown on the browser console.

Image

laravel-datatables-vite-BOwx37Y9.js:5 Uncaught TypeError: Cannot read properties of undefined (reading 'rows')
at HTMLTableElement. (laravel-datatables-vite-BOwx37Y9.js:5:267)
at HTMLTableElement.dispatch (jquery-CPHmENWA.js:10:39595)
at H.handle (jquery-CPHmENWA.js:10:37569)

the error points to this code:

document.addEventListener("DOMContentLoaded", function() {
    let e = $("table");
    e.on("select.dt", function(t, n, s, l) {
        n.rows({
            selected: !0
        }).every(function(a, c, r) {
            var o = this.data();
            o.deleted_at == null && (n.button("restore:name").disable(),
            n.button("forceDelete:name").disable(),
            n.button("forceDeleteSingle:name").disable())
        })
    }),
    e.on("deselect.dt", function(t, n, s, l) {
        n.rows({
            selected: !0
        }).every(function(a, c, r) {
            var o = this.data();
            o.deleted_at == null && (n.button("restore:name").disable(),
            n.button("forceDelete:name").disable(),
            n.button("forceDeleteSingle:name").disable())
        })
    })
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions