Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form partial not working #2174

Open
cknight opened this issue Dec 14, 2023 · 0 comments
Open

Form partial not working #2174

cknight opened this issue Dec 14, 2023 · 0 comments

Comments

@cknight
Copy link
Contributor

cknight commented Dec 14, 2023

I have created a minimal reproduction which shows my issue. The project may be found here: https://github.com/cknight/partial-form-test

Essentially, I have a form augmented with f-partial and a submit button. The submit button executes some javascript before calling form.submit() programatically. However, this initiates a page load, not a partial load.

The route to test is http://localhost:8000/list. Primary code changes in list.tsx and NameIsland.tsx.

One thought. On Discord, Marvin mentioned "internally partials hook into the form submit event". Would event.preventDefault() disable that hook for that request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant