Comments (4)
Hi @kziemski! Thanks for reporting this. The thing is, it's not necessarily true that these properties should be ignored - I can imagine a case, where they are rendered as read-only fields instead.
To work round that, it'd be easiest to build it into the bridge. You could subclass the ZodBridge
and change the getSubfields
method to exclude such fields.
Let me know how it went!
from uniforms.
Agree it would be better if it could also be rendered as a readonly.
Assuming it could be treated as a bug
Is there anyway to ignore fields and subfields in which ZodBridge cannot understand type as opposed to crashing?
from uniforms.
Rendering it as read-only out-of-the-box is a problem on its own, as z.literal
accepts null
and undefined
. Also, not all themes support read-only fields.
Is there anyway to ignore fields and subfields in which ZodBridge cannot understand type as opposed to crashing?
Not in a "if crash then ignore" way, as if it reaches the getType
method, rendering already started. As I said above, such fields could be ignored in getSubfields
.
from uniforms.
Related Issues (20)
- Improve getNativeFormProps in bridges to a more specific type HOT 1
- [MUI] and [Material] `min` and `max` properties are not being applied to a Date field HOT 2
- MUI Textfields do not register text when using vite to create a react app HOT 3
- Add buttons for ListItems don't work HOT 2
- Uniforms and autotests (ui.vision, selenium) HOT 1
- uniforms-bootstrap5 is setting the maxLength in the wrapper, instead of in input HOT 4
- Bad documentation HOT 2
- `ListField` in Bootstrap 5 has white icons on white buttons
- Pass in parameters to custom field when applying component to AutoField. HOT 4
- AutoForm does not include wrapped custom field in onModelChangeEvent HOT 2
- Warning: Failed prop type: Invalid prop `required` of type `array` supplied to `ForwardRef(FormControl)`, expected `boolean`. HOT 1
- Getting Invariant error Field not present in schema file.0 HOT 3
- uniforms-bootstrap5 is setting the minLength and maxLength in the wrapper, instead of in textarea
- DisplayIf required validation and on hide still data passes to model HOT 2
- Schema validation does not work if AutoForm as onValidate HOT 3
- Vertical form layout is broken for antd v5 HOT 1
- How can I send defaultValue to AutoForm HOT 1
- Support v5 of AntD HOT 3
- Option to use JSON Schema `description` property as a helper text HOT 3
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 uniforms.