Comments (1)
This comes from the "what is required
in HTML-Forms", UI-Schema includes some special value-update handling for the required keyword.
e,g, an "unchecked checkbox" would be invalid for <input type="checkbox" required/>
.
Atm. implemented here, which get's an rework in 0.5.0
to make those "value behaviour changes" as plugins.
In the widget, the required
is passed to the update action.
If you don't want that, the current easiest way would be to remove required
from the actions inside your onChange
.
const onChange = React.useCallback((actions) => {
if(!Array.isArray(actions)) {
actions = [actions]
}
actions = actions.map(action => {
if(action.required) {
delete action.required
}
return action
})
setStore(storeUpdater(actions))
}, [setStore])
from ui-schema.
Related Issues (20)
- MUI Slate Upgrade Udecode / Finalize MUI@v5
- MUI List Widgets add list-errors
- MUI Pickers finalize X-Pickers Upgrade
- MUI Code support CodeMirror v6 HOT 2
- Fix v0.4.0 rule of hooks HOT 1
- Remove deprecations for `v0.5.0`
- UIStore.storeUpdater is not a function HOT 1
- Fix ConditionalHandler value checks HOT 1
- Reducing usage of immutable HOT 1
- UIApi / Loading Data / Data Ops
- MUI Widget Switch/`boolean` more options HOT 1
- New Widget: `SwitchGroup`
- New SimplePlugin: `InheritKeywords` HOT 2
- Further StoreAction for type operations
- Store Feature for Messages & Interaction Requests
- SelectMulti improve support for non-scalar lists
- error on simpleList or genericList HOT 1
- Fix `UIApiProvider` state flow and hooks (for SSR)
- Can add `showDescription` option, Create new line show schema description field? 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 ui-schema.