F
Filamentβ€’2mo ago
Felix

fileUpload break when hidden via javascript

hello everyone, Im am making an livewire component with filament forms. I made multiple forms in it and I use aplineJS to switch from form to form. but when the first page is loaded the first form fileUpload works properly, but when I go to an other forms it doesn't work. the fileUpload shows the uploaded image but shows like it doesn't have it (see images for example). Can some one help me with this.
No description
14 Replies
LeandroFerreira
LeandroFerreiraβ€’2mo ago
Difficult for anyone to assist without any code, clear context, etc
Felix
Felixβ€’2mo ago
No description
No description
Felix
Felixβ€’2mo ago
Oh sorry, here is some more code, the left is the blade and the right is the form. I also want to say that it is a lot of code so it is not that easy to show every thing. also when I change from one form to another before the Fileupload is loaded, the Fileupload works on the other form but not on the first.
LeandroFerreira
LeandroFerreiraβ€’2mo ago
lot of code so it is not that easy to show every thing Maybe you could create a minimal repo on github to reproduce only this issue, without any unnecessary code
Felix
Felixβ€’2mo ago
do you mean putting the code that is relevant to this problem in an small git repo?
LeandroFerreira
LeandroFerreiraβ€’2mo ago
yes
Felix
Felixβ€’2mo ago
can I post the git link here?
LeandroFerreira
LeandroFerreiraβ€’2mo ago
yes
Felix
Felixβ€’2mo ago
GitHub
GitHub - WY-FD/fileUpload-problem
Contribute to WY-FD/fileUpload-problem development by creating an account on GitHub.
LeandroFerreira
LeandroFerreiraβ€’2mo ago
you should provide a filament project with your code
Felix
Felixβ€’2mo ago
Oh, do you mean make an new laravel project with filament, and then put the code in that? And sorry if I sound dumb I am still learning.
LeandroFerreira
LeandroFerreiraβ€’2mo ago
yes, complete, to access the same issue on the browser that you are encountering
Felix
Felixβ€’2mo ago
Ok, but that takes a while, and I don't have the time to do it now.
toeknee
toekneeβ€’2mo ago
That's ok, when you have time for support come back πŸ™‚
Want results from more Discord servers?
Add your server