{schema && (
### Expected Behavior
To see my custom widget in the form (I can only see the default one)
### Steps To Reproduce
_No response_
### Environment
```markdown
- OS: Windows 10
- Node: 20.11.0
- npm: 10.2.4
```
### Anything else?
_No response_
@gitdrums By default updown widgets aren't used for numbers unless you update the uiSchema to tell it to. And it seems like you are already modifying the schema. Short of implementing this feature https://github.com/rjsf-team/react-jsonschema-form/issues/3960, what you are doing seems like the best approach.
Prerequisites
What theme are you using?
antd
Version
5.x
Current Behavior
I can succesfully replace the "uri" widget with a custom one, but whatever i try I cant replace "integer". Why?
... const widgets = { uri: MyForm_Uploader, integer: MyForm_Integer, };
return (
uri
is an existing widget keyword andinteger
is not. See the Widgets documentation.You probably want to override the
'updown'
widget.Thanks for your suggestion. I did try to override the "updown" and even "range" and "radio" but the problem persists.
here is my simple schema:
I am out of ideas! Any help?
Here is the funny thing: when I replace text, with my custom integer compoment
text AND integer fields change to my component. I am confused.
This is the only workaround I found to replace "integer" with a custom widget: There must be a simpler way. Ideas?
@gitdrums By default
updown
widgets aren't used for numbers unless you update theuiSchema
to tell it to. And it seems like you are already modifying theschema
. Short of implementing this feature https://github.com/rjsf-team/react-jsonschema-form/issues/3960, what you are doing seems like the best approach.