Skip to content
Discussion options

You must be logged in to vote

the issue is that the form is submitting, which is causing a reload. You can make your button have type="button" on it to avoid this (recommended) or add @submit.prevent on the form element itself (less recommended). Could even remove the form element entirely since it has a lot of behaviors attached to it that you're deliberately avoiding.

I'd advise to use Alpine.data to set up your data components, instead of using global functions.

the browser says it couldnt find the "uploader" property.

Because your code defining it ran AFTER alpine ran to try to find it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jordireinsma
Comment options

@ekwoka
Comment options

Answer selected by jordireinsma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants