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 serialization does not include values set in web components #5245
Comments
Thanks for the report. jQuery traverses Is there a way to read submitted form values from a Web Component? I guess no? We may consider using If you'd like to take a stab at this, the code is here: Lines 94 to 127 in 89ef81f
|
I think the web component used in the example isn't fully implemented. If there were a |
More info:
Just tracing the code paths, it seems like |
I've updated the pen to include the additional getters / setters, but it hasn't had any effect on the output: https://codepen.io/_Tam_/pen/jOewRVq I think the issue comes down to this part of the code filtering out any non-native form elements: Lines 104 to 111 in 89ef81f
|
Yeah I agree, I didn't look far enough down the serialization to see the other roadblocks. I can't find tickets but I'm pretty sure that In this situation, though, we know for certain that the |
Dave to the rescue! We can look into avoiding filtering for |
Description
Web components can set data on a form using setFormValues, but this isn't picked up by jQuery's form serialization.
Link to test case
https://codepen.io/_Tam_/pen/yLRXYxe
The text was updated successfully, but these errors were encountered: