FormKit type file listening to the delete event #1027
fdverwoerd
started this conversation in
General
Replies: 2 comments
-
try this, hope it work
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm not sure this completely answers your question, but you could get the FormKit node from your file input and listen to the commit event: https://formkit.link/c55135a36356d86bfb9671f563781719 @fdverwoerd |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a:
And I click on remove all, or delete 1 file. The file gets deleted in the model. But I want to listen to this delete. Because I have a piece of code that uses @change and listen to file input and transform file into:
But After deleting the files I still have this array with the base64 copy. I am looking for a simple way to keep this in sync.
And another thing is that my FormKit type file is dynamic in a v-for loop. So this can either be text or file.
https://formkit.link/4f595dd01e586eacb7dbde4fd97e9019
Beta Was this translation helpful? Give feedback.
All reactions