BUG - No done button for select tag in IOS

后端 未结 6 2107
悲&欢浪女
悲&欢浪女 2021-02-13 18:15

I\'m using the latest ionic and have a simple select tag.


                        
    
提交评论

  • 2021-02-13 18:33

    Solution: Remove this plugin!

    sudo cordova plugin remove ionic-plugin-keyboard.

    0 讨论(0)
  • 2021-02-13 18:33

    I solved when put this line on config.xml:

    <preference name="HideKeyboardFormAccessoryBar" value="false" />
    
    0 讨论(0)
  • 2021-02-13 18:39

    What worked for me is doing:

    if (Keyboard) {
      Keyboard.hideFormAccessoryBar(false);
      Keyboard.hideKeyboardAccessoryBar(false);
    }
    

    The new plugin was exposed as global Keyboard, rather than cordova.plugins.Keyboard, and then the hideFormAccessoryBar is for form elements, rather than just for keyboard typing.

    0 讨论(0)
  • 2021-02-13 18:47

    Although this is a late answer, I'm sure more people will end up here while searching for a solution to this issue.

    By default in your app.js in .run() the hideKeyboardAccessoryBar is set to true, so just find

    if (window.cordova && window.cordova.plugins.Keyboard) {
      window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    

    and change it to

    if (window.cordova && window.cordova.plugins.Keyboard) {
      window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
    }
    
    0 讨论(0)
  • 2021-02-13 18:48

    This is what worked for me since I needed the accessory bar only in one instance, the accepted answer is old, and I am using cordova-plugin-keyboard instead. I used it with an onOpen handler.

    if (window.Keyboard) {
      window.Keyboard.hideFormAccessoryBar(false);
    }
    
    0 讨论(0)
  • 提交回复
    热议问题