Comments (2)
I just notice this issue. Maybe you have already figured out a solution.
Unfortunately useControlledInput is properly needed. As Conform are listening to native DOM events like input
, blur
, submit
to find out when the form should be (re)validated. However, React itself or most of the solution does not dispatch those events for you while you are modifying the value.
However, if you can make each options in the dropdown a submit button with formNoValidate
being true, so that selecting an option would also trigger a submit event, it might be able to work without the useControlledInput
hook too.
I don't have any example for the 2nd solution yet. But I think it is totally possible to have dropdown or datepicker working nicely even without JS with a bunch of submit buttons 😄
from conform.
I realized it wasn’t going to work as I thought it would and kinda gave up for now. I’ll try your suggestions on Monday.
I’ve got a React Aria select that has its own shadow input. I realized that it just re-renders when the selected value changes. It doesn’t emit a change which means Conform doesn’t catch the change.
from conform.
Related Issues (20)
- Conditionally rendered fields break onInput revalidation HOT 4
- "required" key is missing / wrong for fieldsets nested inside fieldlists HOT 2
- Non-default radio inputs get desynced after form reset HOT 1
- Installation instructions should mention `@conform-to/dom` HOT 3
- Missing documentation for description(Id) and attributes HOT 1
- Redirecting from action doesn't reset input value or error HOT 1
- Radix UI specific inputs HOT 1
- `getFieldsetConstraint` does not parse attributes correctly HOT 3
- Double submit with requestIntent HOT 2
- useFieldList does not reupdate HOT 4
- Allow keeping reference to removed inputs HOT 2
- Whitespace chars in number fields are incorrectly coerced to 0 with zod
- conform's automatic type coercion doesn't work with `z.discriminatedUnion` HOT 1
- Default Value with booleans + checkboxes doesnt work HOT 1
- Field error not sync between onValidate() method and UI HOT 4
- Using checkboxes with zod is confusing HOT 6
- Controlled select component does not work when shouldValidate is onInput HOT 1
- onSubmit triggers multiple times. HOT 3
- Support submitting empty strings with Zod HOT 4
- fallback lsp range format with several buffers get messed HOT 2
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 conform.