You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->
Current behavior
When I submit a form containing a file in js, event with "preventDefault", the page is automatically reloaded.
Same with axios and fetch and when the server response is ok or not.
If more than one file are openned with liveServer, even on differents navigator, ALL are reloading in the same time when the server response comes.
Here is a simple html file to reprocude the problem.
No reload if e.preventdefault is present while I submit the form with my js.
Environment
Backend created in php 8.2.1, using Symfony 7.1
Browser:
- [x] Chrome (desktop) Version 128.0.6613.138 (Build officiel) (64 bits)
- [x] Firefox version 130.0 (64 bits)
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Live Server: v5.7.9
- Platform: Windows
- Visual Studio Code: 1.93.0 4849ca9bdf9666755eb463db297b69e5385090e3 x64
The text was updated successfully, but these errors were encountered:
If I was to hazard a guess you are saving files to the project folder. You can have a folder in that folder which you can configure live server to ignore, but if you just add a file to the project folder even if its not used in your application it will trigger the reload event. Did that yesterday and found the answer. It was really weird because things worked as expected on other browsers but i wasn't saving to the project folder either.
I'm submitting a bug repport
Current behavior
When I submit a form containing a file in js, event with "preventDefault", the page is automatically reloaded.
Same with axios and fetch and when the server response is ok or not.
If more than one file are openned with liveServer, even on differents navigator, ALL are reloading in the same time when the server response comes.
Here is a simple html file to reprocude the problem.
Expected behavior
No reload if e.preventdefault is present while I submit the form with my js.
Environment
Backend created in php 8.2.1, using Symfony 7.1
The text was updated successfully, but these errors were encountered: