twg_'s avatar
Level 6

Issue loading aplinejs in repeatable regions

I've created an edit view for my application that uses livewire to have a dynamic "content" area. I'm able to create multiple regions inside my content area just fine. The issue I'm running into is that when I add a "image grid" region, my alpinejs code use to upload images throws an Uncaught SyntaxError: Invalid or unexpected token. I'm including my alpine script inline with the file input field. Should I be doing it another way?

0 likes
1 reply
twg_'s avatar
twg_
OP
Best Answer
Level 6

Never mind. I found the issue and it was that I needed to use window. before my alpinejs function.

Please or to participate in this conversation.