values from preSubmit are set in the state
See original GitHub issueinformed@1.10.4
I tried to use preSubmit
to convert one select value "true"
/"false"
to an actual boolean. But the boolean is then set in the form state, breaking the selected <option>
. I’ve read in the doc that that should not happen.
It seems related to that line: https://github.com/joepuzzo/informed/blob/master/src/Controller/FormController.js#L298
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
SYMFONY FORM EVENT -> Change submitted data on PRE ...
My goal: I have a SYMFONY FORM with a field that should be disabled:true . When the form is submited the field with...
Read more >PRESUBMIT.py - chromium/src.git - Git at Google
it would be allowed to have "set noparent" to avoid top level owners. # accidentally +1ing changes. ... 'value in a valid but...
Read more >Change values before Submit · Issue #1634 · jaredpalmer/formik
I've wrote this addable with component state and I store additional inputs into an Array. Can I edit formik values with each remove...
Read more >How to Dynamically Modify Forms Using Form Events - Symfony
Example: on a registration form, you have a "country" field and a "state" field which should populate dynamically based on the value in...
Read more >Test Mapping | Android Open Source Project
With Test Mapping, you can add the same set of tests to presubmit ... or original value. should not assume a device in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The intent was to mutate
You could always just convert before you do whatever it is you do after onSubmit