-
Notifications
You must be signed in to change notification settings - Fork 419
Closed
Description
Describe the bug
The React Vanilla Categorization renderer maintains local state about the currently selected category. This state is not properly updated when the UI Schema changes and therefore may return a previous category which no longer fits the JSON Schema.
Expected behavior
Whenever a prop of the React Vanilla Categorization renderer changes it should update accordingly.
Steps to reproduce the issue
- Render a categorization with React Vanilla
- Select a category
- Replace schema and uischema with a new Categorization but whose content is completely different
- Still the old category of the previous uischema is used, leading for example to "No applicable cell" errors
The problematic code seems to be here.
Screenshots
No response
In which browser are you experiencing the issue?
n/a
Which Version of JSON Forms are you using?
3.0.0
Framework
React
RendererSet
Vanilla
Additional context
Reported in this discussion