mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
refactor(click-block): reversing previous change, making getBoolean use fallback of true
reversing previous change, making getBoolean use fallback of true
This commit is contained in:
@ -183,9 +183,7 @@ function setupDom(window: Window, document: Document, config: Config, platform:
|
|||||||
bodyEle.classList.add('enable-hover');
|
bodyEle.classList.add('enable-hover');
|
||||||
}
|
}
|
||||||
|
|
||||||
let original = config.get('clickBlock');
|
if ( config.getBoolean('clickBlock', true) !== false ) {
|
||||||
let bool = config.getBoolean('clickBlock');
|
|
||||||
if ( bool !== false ) {
|
|
||||||
clickBlock.enable();
|
clickBlock.enable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,18 +10,14 @@ Platform.register({
|
|||||||
name: 'core',
|
name: 'core',
|
||||||
settings: {
|
settings: {
|
||||||
mode: 'md',
|
mode: 'md',
|
||||||
keyboardHeight: 290,
|
keyboardHeight: 290
|
||||||
clickBlock: true
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Platform.setDefault('core');
|
Platform.setDefault('core');
|
||||||
|
|
||||||
|
|
||||||
Platform.register({
|
Platform.register({
|
||||||
name: 'mobile',
|
name: 'mobile'
|
||||||
settings: {
|
|
||||||
clickBlock: true
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user