-
Notifications
You must be signed in to change notification settings - Fork 79
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
On POST, vaadin-select is not included in the POST values #7378
Comments
I posted this issue on StackOverflow but just got what looked like an opinion. |
The |
OK thanks! Maybe these limitations should be clearer in the docs... |
I don't mean to be rude, but the main page for the components states they are "A set of high-quality standards based web components for enterprise web applications." https://github.com/vaadin/web-components I wouldn't call "standards based" the fact that value is not supported. This is quite misleading. |
Thank you for your feedback. The "standards based" means that Vaadin components are based on web components standards. I agree that not supporting form submission is an important missing feature. |
Description
I'm trying to use vaadin web components on a regular web page outside the vaadin ecosystem - just html and javascript. Same context as #7377.
On POST, FormData does not contain the value (nor the title) of the entry selected in a vaadin-select - vaadin-select is just omitted.
Expected outcome
I would expect the control to behave as a standard Select on POST and send its value, ce1521d8-cffd-11ee-baef-477d625ddaa8 for "Label A", or ce2e4046-cffd-11ee-baef-93b6cbfb74ea for "Label B".
It's a bit troubling because the value of the vaadin-select component is correctly set - it's "just" not sent at all in FormData.
_ Again, tt might be that I expect too much of the library, though, and that I didn't find the piece of doc explaining that vaadin components don't work this way, or need extra configuration_
Minimal reproducible example
Standard html, loading all components:
Button Save displays this in console:
Steps to reproduce
Environment
Vaadin version(s): Latest vaadin 24.3.10 components
Environment: Bun / Elysia behind a Caddy proxy - node equivalent
OS: ubuntu 24.04
Browsers
Chrome, Firefox
The text was updated successfully, but these errors were encountered: