question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

values from preSubmit are set in the state

See original GitHub issue

informed@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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
joepuzzocommented, Dec 7, 2018

The intent was to mutate

1reaction
joepuzzocommented, Aug 29, 2018

You could always just convert before you do whatever it is you do after onSubmit

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found