No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Best way to slide inputs out of the way of the keyboard?

    Help
    3
    6
    3001
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robmpreston last edited by

      So the front page of my app is your stereotypical full screen page with a logo and 2 input boxes. These 2 input boxes have autocomplete dropdowns for categories and location.

      When I deploy using Cordova on iOS or Android, tapping on the inputs leaves them hidden by the keyboard. On Android, I’ve tried the behavior to slide the screen up but it makes things look janky and mostly just causes issues on the page.

      Any good solutions already out there for this?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by rstoenescu

        I’m working on a solution for this. Made an experiment with a cordova package called something like ionic keyboard. This package triggers events when keyboard is shown, and you can check the keyboard height and add same offset to the scroll position of the page (or .layout-view if using layout). This will probably go into the next Quasar if I’ll be succesfull all the way.

        It’s another common problem with Hybrid Apps that will get solved by Quasar.

        R 1 Reply Last reply Reply Quote 0
        • R
          robmpreston @rstoenescu last edited by

          @rstoenescu Awesome! Is that a couple weeks off? If so, I’ll roll it myself for now. Is this the package you are referring to:

          https://github.com/driftyco/ionic-plugin-keyboard

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            Yep. That’s the one.

            1 Reply Last reply Reply Quote 0
            • rstoenescu
              rstoenescu Admin last edited by

              If you find a generic way before I start working on it maybe you can make a PR. It would speed things up.

              1 Reply Last reply Reply Quote 0
              • R
                ruizinho last edited by

                Hi, did this got integrated already?

                If so, where is the documentation on the events fired on keyboard showing?

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post