Comments (1)
This only happens when you type the FIRST LETTER ONLY. When you type the second letter the error goes away, also if you have 2 letters and remove one letting the input value with 1 letter, the error doesn't show as well, so this only happens when the input is empty and you type one letter only.
This sounds like an issue with late update (shows the error one state after when it should be shown). And sure enough, if you paste a value into the input it also shows the same error on my test.
I changed the trigger to use onChange
instead of onChangeText
, updating the getValueFromEvent
into {({nativeEvent}) => nativeEvent.text}
. This seems to fix the issue.
Not sure why that's happening. Looks like it's a react-native issue instead of this library?
from field-form.
Related Issues (20)
- 想问下 关于 rc-form 和 rc-field-form HOT 1
- 咨询贴:rc-components 是否算 headless ui 组件? HOT 1
- useForm should return field errors
- validator校验无法输出'${example}'
- antd的form的shouldUpdate执行了validator没有执行 HOT 1
- 表单rule增加一个groupId选项
- 关于静默校验的需求 HOT 8
- How to detect if form was submitted with hooks?
- <Form/> cannot submitted via ‘action’ property
- listContext 造成useWatch 失效
- setFieldsValue 后getFieldsValue会获取到非 form结构的数据(After using setFieldsValue, calling getFieldsValue will retrieve the values, including those that are not part of the form structure.)
- No FormInstance method types
- Field > change key with resetCount
- Allow dynamic namePath in useWatch
- Website not working
- 希望能在registerWatch的回调函数中带出触发值改变的triggerName
- remove 删除有误
- Reset form validation HOT 1
- Demo website occur some error HOT 1
- Vite.js 5 unknown comment `/*#__PURE__*/` info HOT 4
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 field-form.