-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-select value not posted in no-legacy mode (vanilla javascript) #27478
Labels
Comments
liamdebeasi
added
package: core
@ionic/core package
type: bug
a confirmed bug report
labels
May 15, 2023
2 tasks
Thanks for the report. Here is a dev build with a proposed fix if you are interested in testing: |
liamdebeasi
added a commit
that referenced
this issue
May 16, 2023
Issue number: resolves #27478 --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> The modern syntax render function was missing `renderHiddenInput` which caused modern `ion-select` instances to not participate in form submission. Legacy syntax is not affected. ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Modern syntax calls `renderHiddenInput`. ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> Dev build: `7.0.7-dev.11684158250.1920157d`
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
A php file with a simple form containing an ion-select (3 options) and an ion-input.
The posted page has only input_text (the ion-input) in the request. Nothing about select_abc (the ion-select).
Expected Behavior
The posted page should show the posted data in the ion-card at the bottom the ion fields should have the posted data as value set.
Steps to Reproduce
Code Reproduction
Ionic Info
just vanilla javascript
Additional Information
It works if in legacy mode
The text was updated successfully, but these errors were encountered: