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

    Set focus on first field

    Help
    6
    10
    2942
    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.
    • F
      flavioafa last edited by

      Hello guys!

      How to implement set focus for the first field of all components? Is there anything in the quasar?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • M
        mKomo last edited by mKomo

        Hey,

        theres an autofocus prop on form components

        see the API section:

        • https://v1.quasar-framework.org/vue-components/input

        3rd prop from the bottom

        1 Reply Last reply Reply Quote 1
        • F
          flavioafa last edited by

          Thanks for listening!

          Is there any way to do this for the first q-input automatically? Without having to implement on each one manually.

          Hugs!

          lucasfernog C 2 Replies Last reply Reply Quote 0
          • lucasfernog
            lucasfernog @flavioafa last edited by

            @flavioafa That would be a nice QForm feature.

            1 Reply Last reply Reply Quote 0
            • C
              Cego @flavioafa last edited by Cego

              @flavioafa use $ref to get autofocus for specific control.

              1 Reply Last reply Reply Quote 1
              • lucasfernog
                lucasfernog last edited by

                I think I will make a PR tomorrow

                1 Reply Last reply Reply Quote 0
                • lucasfernog
                  lucasfernog last edited by

                  https://github.com/quasarframework/quasar/pull/3759

                  1 Reply Last reply Reply Quote 3
                  • s.molinari
                    s.molinari last edited by

                    Good job @lucasfernog !

                    Scott

                    1 Reply Last reply Reply Quote 0
                    • Hawkeye64
                      Hawkeye64 last edited by

                      @lucasfernog It was merged in. Very good work! Thanks!

                      1 Reply Last reply Reply Quote 0
                      • lucasfernog
                        lucasfernog last edited by

                        Thank you for this awesome framework.

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