Replies: 1 comment 5 replies
-
You just have syntax issues wrong. const fileList = [files] || [] This is definitely not right. I don't know what you're trying to have it do, I just know this is wrong. Similarly const { files } = e.target These are both wrong. I can't tell how its causing what you describe, but they definitely do not work. This code definitely does nothing useful like this. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I load alpine pages in a page by
pajax
alpine page like this :
`
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/[email protected]/dist/cdn.min.js"></script>`
when load alpine page first and close everything's fine
repeated operation
init()
was triggered twice.files
added first and second datarepeated operation ...
files
Infinite Append DataI guess that multiple alpines share the same data.
How do I deal with this problem, alpine doesn't seem to have a clear way
Beta Was this translation helpful? Give feedback.
All reactions