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

serializeForm breaks form when submit is named #232

Open
tcz opened this issue Jan 11, 2023 · 4 comments
Open

serializeForm breaks form when submit is named #232

tcz opened this issue Jan 11, 2023 · 4 comments

Comments

@tcz
Copy link

tcz commented Jan 11, 2023

The submit input and submit button are special inputs with the following property:

Upon submitting, the data name/value pair gets sent to the server.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/submit

This gets completely ignored by Keen when capturing form-submit events and it breaks forms that rely on this.

@amenk
Copy link

amenk commented Feb 18, 2023

@tcz Did you try fixing this?

@tcz
Copy link
Author

tcz commented Feb 18, 2023

No, I did not. I think the company should fix this.

@amenk
Copy link

amenk commented Feb 18, 2023

Root cause seems in https://github.com/defunctzombie/form-serialize/ which this uses "a modified 0.7.1"

This is a modified copy of https://github.com/defunctzombie/form-serialize/ v0.7.1
of

So this seems to be that issue: defunctzombie/form-serialize#52

@amenk
Copy link

amenk commented Feb 18, 2023

We found out that deleting the else branch here fully, at least does not break the original form submit:

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

No branches or pull requests

2 participants