Skip to content

Commit 2257022

Browse files
committed
Remove orderable styles when displaying array as tabs.
1 parent aced177 commit 2257022

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib/src/framework-library/material-design-framework/material-design-framework.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ export class MaterialDesignFrameworkComponent implements OnInit, OnChanges {
230230
if (this.layoutNode.arrayItem && this.layoutNode.type !== '$ref') {
231231
this.parentArray = this.jsf.getParentNode(this);
232232
if (this.parentArray) {
233-
this.isOrderable = this.layoutNode.arrayItemType === 'list' &&
233+
this.isOrderable = this.parentArray.type.slice(0, 3) !== 'tab' &&
234+
this.layoutNode.arrayItemType === 'list' &&
234235
!this.widgetOptions.readonly && this.parentArray.options.orderable;
235236
}
236237
}

src/lib/src/framework-library/material-design-framework/material-tabs.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
1+
import { Component, Input, OnInit } from '@angular/core';
22

33
import { JsonSchemaFormService } from '../../json-schema-form.service';
44

0 commit comments

Comments
 (0)