switches don't work in a FormAccess
form
not all of their props where copied
This commit is contained in:
parent
7c3a5739eb
commit
bb51903ce8
1 changed files with 1 additions and 2 deletions
|
@ -69,8 +69,7 @@ export const FormAccess = ({
|
|||
render: (props: any) => {
|
||||
const renderElement = element.props.render(props);
|
||||
return cloneElement(renderElement, {
|
||||
value: props.value,
|
||||
onChange: props.onChange,
|
||||
...renderElement.props,
|
||||
...newProps,
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue