ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
610 stars 274 forks source link

bug: accessory bar missing when plugin installed #242

Open dylanvdmerwe opened 7 years ago

dylanvdmerwe commented 7 years ago

Something weird I just spotted.

When this plugin is not installed, on iOS 10.x (no WKWebView plugin), the accessory bar is shown above the keyboard. As soon as this plugin is installed using the default setup the bar is removed.

Why does installing this plugin override the default of showing the accessory bar? I think the default setting of this plugin is not right.

pasted image at 2016_12_14 09_57 am

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3-201612122136
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0
ios-sim version: 5.0.10
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.2 Build version 8C38
johnnynode commented 7 years ago

Try this in your config

if (window.cordova) {
    cordova.plugins.Keyboard.hideKeyboardAccessoryBar(!ionic.Platform.isIOS());
    cordova.plugins.Keyboard.disableScroll(true);
}
dylanvdmerwe commented 7 years ago

Thanks @johnnynode. This issue is more about the defaults of the plugin.