kugra-al / al-laravel

Status: live
0 stars 0 forks source link

Uncaught TypeError: $(...).modal is not a function #16

Closed kugra-al closed 1 year ago

kugra-al commented 1 year ago
$('#itmFileModal').modal()
Uncaught TypeError: $(...).modal is not a function
    <anonymous> debugger eval code:1

This should be working. Datatables has some jQuery2 func, so maybe some of the bootstrap loading stuff is out of whack.

Might also be a load order issue?

Ed: same issue on pages without datatables, so unlikely it's that. The modal .css is loaded though.. where's the js gone?

kugra-al commented 1 year ago

modal = 47 matches in chunk-HMEPWKGM.js.. it should be working...

kugra-al commented 1 year ago

Low priority for now. Can just cheat with jquery and make them work https://github.com/kugra-al/al-laravel/commit/70d5d96cbf5d4109a98c0acbf670256506ca3859

Might just need to install it in app.js (though it looks like it already is, I dunno)

kugra-al commented 1 year ago

Cheated and hacked it in in https://github.com/kugra-al/al-laravel/commit/9ef575c36757540d1d3bc61ab94c0dbe44ab0877