Comments (4)
@Rileran You need to use the isNumber() validation to check if the value is number or not 😉
from formiz.
Then there is a problem within the documentation.
isMinNumber(min)
Tests if the value is a number and above a min value.
Sending a PR to fix the doc !
from formiz.
@Rileran Wait, I answered too fast 😔
The documentation is right, and it should not be valid. I see the issue on Firefox, the value is not set if it's not a number.
from formiz.
You can fix this issue by replacing type="number"
by type="tel"
. It will work the same for mobile keyboards and it will work as expected in firefox.
from formiz.
Related Issues (20)
- Form not rendering when page is loaded in time not to make screen jump HOT 5
- React 18 asyncValidations doesn't work anymore HOT 3
- Formiz v2 - React 18 HOT 7
- Step Animations/Transitions HOT 1
- Can't See Steppers Page "previous" Button on Dark Mode HOT 3
- Add strict max & min number validations
- Use of keepUnmounted and keepPristine in same setFieldsValues
- Reset issue on v2 alpha.4 HOT 1
- Hydration - SSR HOT 3
- Async initialValues didn't work with useCollection HOT 2
- support rtl HOT 2
- FEAT: maxLength/minLength options on useCollection
- Pristine update on collection remove HOT 1
- FEAT: Add a Formiz Devtools
- useForm is not working as expected. HOT 2
- Delete collection on unmount
- Pls expose useFormContext HOT 2
- Issue when setFieldsValues is called on mount HOT 1
- Error when hiding step B in Conditional Fields & Steps in Demos
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 formiz.