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

    clearble q-input problem with focus

    Help
    3
    5
    658
    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.
    • yk-davdomin
      yk-davdomin last edited by

      I have a problem with the clearable input because then when the input lost the focus then the focus goes to the (x) and no to the other input I want the the (x) button doesn’t have a focus

      Here I put a code snippet https://stackoverflow.com/questions/64109189/quasars-clearble-q-input-problem-with-focus?noredirect=1

      Thanks guys

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @yk-davdomin last edited by

        @yk-davdomin if you make use of the slot you can give it a tabindex -1.

        yk-davdomin 1 Reply Last reply Reply Quote 1
        • yk-davdomin
          yk-davdomin @metalsadman last edited by

          @metalsadman Thanks, but I dont understand how to use the slot can you put an example?

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @yk-davdomin last edited by

            @yk-davdomin

            There 3 examples in the doc of a q-input with a clear button. The second one uses a slot.

            https://quasar.dev/vue-components/input#Example--Clearable

            1 Reply Last reply Reply Quote 1
            • yk-davdomin
              yk-davdomin last edited by

              Thanks @metalsadman and @dobbel it is working now

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