Monaca Onsen UI Discord Chat Github Repo

ons-keyboard-inactive in Onsen 2?

  • I want to hide a button when the keyboard is active. Is it possible in Onsen UI 2?

    This does not work:

    <div ons-keyboard-inactive>
       <ons-button modifier="material" float>OK</ons-button>

  • @anderson ons-keyboard-inactive was for Onsen 1. There is not an equivalent that I am aware of. I would suspect you approach the use case differently in Onsen 2. What exactly are you trying to do? Are you wanting to hide a key on the keyboard?