I’m encountering an issue with the category element.
At the first time, when i click “add element” on the second tab, i am redirect to the first tab.
Why does this behavior occur ? All subsequent clicks on “add” after the first one function as anticipated. I’m using Angular 16 with jsonForms 3.2.1.
schema = {
type: "object",
properties: {
parc: {
type: "array",
items: {
type: "object",
properties: {
id: {
type: "string",
},
},
},
},
},
};
uischema = {
type: "VerticalLayout",
elements: [
{
type: "Categorization",
elements: [
{
type: "Category",
label: "A1",
elements: [
{
type: "Control",
scope: "#/properties/parc",
options: {
detail: {
type: "VerticalLayout",
elements: [
{
type: "HorizontalLayout",
elements: [
{
type: "Control",
scope: "#/properties/id",
},
],
},
],
},
},
},
],
},
{
type: "Category",
label: "A2",
elements: [
{
type: "Control",
scope: "#/properties/parc",
options: {
detail: {
type: "VerticalLayout",
elements: [
{
type: "HorizontalLayout",
elements: [
{
type: "Control",
scope: "#/properties/id",
},
],
},
],
},
},
},
],
},
],
},
],
};
data = "{}";
<jsonforms
[data]="data"
[schema]="schema"
[uischema]="uischema"
[renderers]="renderers"
></jsonforms>