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

    focus to input on popups

    Help
    2
    3
    970
    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.
    • N
      Nico-L last edited by

      Hi,

      I’d like to focus on a q-input contained in a popover/dialog when the popover/dialog is shown (usually through a button). I can’t find the way to do it. Here a fiddle with a try :
      https://jsfiddle.net/waugrryy/288/
      I put two buttons. The first one to show the popover and simultaneously I call the focus function with the @click event. No focus is happening inside the popover.
      The second button is inside the popover and correctly set the focus.

      I would like to focus when one clicks on the first button. Is there a way to do that?

      Thanks,
      Nicolas

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

        use @show event

        1 Reply Last reply Reply Quote 0
        • N
          Nico-L last edited by

          Great !

          Thank you very much!

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