Skip to content

Commit 20c1991

Browse files
authored
Merge pull request #349 from tinymce/hotfix/MaterialTabFix
Fix reactive model in storybook for material tabs
2 parents 2e7ac7b + 5f6b7f7 commit 20c1991

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stories/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ storiesOf('Editor', module)
123123
component: MaterialTabs,
124124
moduleMetadata: {
125125
declarations: [ MaterialTabs ],
126-
imports: [ BrowserAnimationsModule, MatTabsModule ]
126+
imports: [ ReactiveFormsModule, FormsModule, BrowserAnimationsModule, MatTabsModule ]
127127
}
128128
})
129129
)

stories/materialtabs/MaterialTabs.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export class MaterialTabs implements AfterViewInit {
99
@ViewChild('tabGroup', { static: false }) public tabGroup: any;
1010
public apiKey = apiKey;
1111
public activeTabIndex: number | undefined = undefined;
12-
public firstEditorValue = '';
13-
public secondEditorValue = '';
12+
public firstEditorValue = 'First editor initial value';
13+
public secondEditorValue = 'Second editor initial value';
1414

1515
public handleTabChange(e: MatTabChangeEvent) {
1616
this.activeTabIndex = e.index;

0 commit comments

Comments
 (0)