You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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
The text was updated successfully, but these errors were encountered: