Skip to content

Commit 7def98c

Browse files
committed
fix(config): set the properties for each mode and add defaults
closes #6132
1 parent 78ffe0e commit 7def98c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/tabs/tabs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ export class Tabs extends Ion {
232232
super(_elementRef);
233233
this.parent = parent;
234234
this.id = ++tabIds;
235-
this.subPages = _config.getBoolean('tabSubPages');
236-
this._useHighlight = _config.getBoolean('tabbarHighlight');
235+
this.subPages = _config.getBoolean('tabSubPages', false);
236+
this._useHighlight = _config.getBoolean('tabbarHighlight', false);
237237
this._sbPadding = _config.getBoolean('statusbarPadding', false);
238238

239239
if (parent) {

src/config/modes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ Config.setModeConfig('ios', {
3737

3838
spinner: 'ios',
3939

40+
tabbarHighlight: false,
4041
tabbarPlacement: 'bottom',
4142

43+
tabSubPages: false,
44+
4245
toastEnter: 'toast-slide-in',
4346
toastLeave: 'toast-slide-out',
4447
});
@@ -72,6 +75,7 @@ Config.setModeConfig('md', {
7275

7376
pickerEnter: 'picker-slide-in',
7477
pickerLeave: 'picker-slide-out',
78+
pickerRotateFactor: 0,
7579

7680
popoverEnter: 'popover-md-pop-in',
7781
popoverLeave: 'popover-md-pop-out',
@@ -116,6 +120,7 @@ Config.setModeConfig('wp', {
116120

117121
pickerEnter: 'picker-slide-in',
118122
pickerLeave: 'picker-slide-out',
123+
pickerRotateFactor: 0,
119124

120125
popoverEnter: 'popover-md-pop-in',
121126
popoverLeave: 'popover-md-pop-out',

0 commit comments

Comments
 (0)