mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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');
|
||||
}
|
||||
|
||||
let original = config.get('clickBlock');
|
||||
let bool = config.getBoolean('clickBlock');
|
||||
if ( bool !== false ) {
|
||||
if ( config.getBoolean('clickBlock', true) !== false ) {
|
||||
clickBlock.enable();
|
||||
}
|
||||
|
||||
|
@ -10,18 +10,14 @@ Platform.register({
|
||||
name: 'core',
|
||||
settings: {
|
||||
mode: 'md',
|
||||
keyboardHeight: 290,
|
||||
clickBlock: true
|
||||
keyboardHeight: 290
|
||||
}
|
||||
});
|
||||
Platform.setDefault('core');
|
||||
|
||||
|
||||
Platform.register({
|
||||
name: 'mobile',
|
||||
settings: {
|
||||
clickBlock: true
|
||||
}
|
||||
name: 'mobile'
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user