mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(click-block): update to config for click-block
update to config for click-block
This commit is contained in:
@@ -183,7 +183,9 @@ function setupDom(window: Window, document: Document, config: Config, platform:
|
||||
bodyEle.classList.add('enable-hover');
|
||||
}
|
||||
|
||||
if ( config.get('clickBlock') !== false ) {
|
||||
let original = config.get('clickBlock');
|
||||
let bool = config.getBoolean('clickBlock');
|
||||
if ( bool !== false ) {
|
||||
clickBlock.enable();
|
||||
}
|
||||
|
||||
|
||||
@@ -11,13 +11,17 @@ Platform.register({
|
||||
settings: {
|
||||
mode: 'md',
|
||||
keyboardHeight: 290,
|
||||
clickBlock: true
|
||||
}
|
||||
});
|
||||
Platform.setDefault('core');
|
||||
|
||||
|
||||
Platform.register({
|
||||
name: 'mobile'
|
||||
name: 'mobile',
|
||||
settings: {
|
||||
clickBlock: true
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user