diff --git a/packages/examples/src/examples/arrays-with-detail.ts b/packages/examples/src/examples/arrays-with-detail.ts index c830d55ec..a21c40853 100644 --- a/packages/examples/src/examples/arrays-with-detail.ts +++ b/packages/examples/src/examples/arrays-with-detail.ts @@ -32,6 +32,8 @@ export const schema = { occupation: { type: 'string' }, comments: { type: 'array', + minItems: 2, + maxItems: 8, items: { type: 'object', properties: { @@ -58,6 +60,7 @@ export const uischema = { scope: '#/properties/comments', options: { showSortButtons: true, + restrict: true, detail: { type: 'VerticalLayout', elements: [ diff --git a/packages/examples/src/examples/arrays-with-sorting.ts b/packages/examples/src/examples/arrays-with-sorting.ts index ee6932ade..9891c2d94 100644 --- a/packages/examples/src/examples/arrays-with-sorting.ts +++ b/packages/examples/src/examples/arrays-with-sorting.ts @@ -30,6 +30,8 @@ export const schema = { properties: { comments: { type: 'array', + minItems: 2, + maxItems: 8, items: { type: 'object', properties: { @@ -64,6 +66,7 @@ export const uischema = { scope: '#/properties/comments', options: { showSortButtons: true, + restrict: true, }, }, ], @@ -81,6 +84,7 @@ export const uischemaWithSorting = { scope: '#/properties/comments', options: { showSortButtons: true, + restrict: true, }, }, ], diff --git a/packages/vue/vue-vanilla/src/array/ArrayListElement.vue b/packages/vue/vue-vanilla/src/array/ArrayListElement.vue index 62e8da464..01df843f5 100644 --- a/packages/vue/vue-vanilla/src/array/ArrayListElement.vue +++ b/packages/vue/vue-vanilla/src/array/ArrayListElement.vue @@ -19,6 +19,7 @@ ↓