Comments (9)
@danteissaias yeah fix should be out in a couple of days.
from form.
Hey @crutchcorn
Can you assign this to me please
from form.
Can you aasign this issue to me?
from form.
hey @I-MirzaBaig
I am working on this. Could you pick any other open issue.
from form.
@vikaskumar89 Alright!
from form.
Hey @crutchcorn
The root cause of this error is because we have defined undefined
for the submit
cause that leads to validateSync returning early and not executing any onBlur/onChange
validation.
error rootcause:
form/packages/form-core/src/FieldApi.ts
Line 337 in fd19453
One solution that comes to my mind is in case of submit
cause, we can execute either onChange
or onBlur
validation(whichever is defined in the field) but this would lead to incorrect errorMap detail in the state as the errorMapKey would be submit
and the error would correspond to onChange/onBlur
.
Do you have any alternate suggestion to fix this ?
from form.
Due to this errorMap array, we are facing this issue in #486, as the errorMap is not clear after a valid value is entered.
from form.
Is there currently a workaround to this?
from form.
This fix is released in 0.10.0
!
from form.
Related Issues (20)
- [Docs] Add more info to the guide page about validation HOT 6
- [Docs] Guide page about getting and setting field values HOT 1
- [Docs] Guide about custom form controls HOT 2
- [Tracking] SSR & RSC Usage HOT 5
- [Docs] Guide about dynamic forms & nested fields HOT 1
- [Docs] Update the page title HOT 2
- If validation fails in `onSubmitAsync`, error does not resolve with a valid input HOT 3
- formAPI's onChange not called HOT 1
- Rename Validators to Avoid DOM Event Confusion HOT 2
- Add docs and tests for Field Arrays HOT 5
- FormApi.reset seems to break a form HOT 7
- Unmounting a field does not update the form HOT 1
- Caching Primitives HOT 1
- Mark internal methods as internal HOT 2
- deleteField does not work inside if field is inside an array
- Add tests for getBy, setBy and deleteBy
- Svelte support
- validateAllFields isn't working with touched fields HOT 5
- "A component is changing a controlled input to be uncontrolled" in Next.js App router HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from form.