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
    1. Home
    2. gotjoshua
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Best 1
    • Groups 0

    gotjoshua

    @gotjoshua

    1
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    gotjoshua Follow

    Best posts made by gotjoshua

    • RE: How to select text on focus in a QInput

      this can be done more generically:

      <template>
          <q-input
              v-model="who"
              label="Who"
              dense
              @focus="selectOnFocus"
              @keyup.enter="focusOnSubmit"
            />
      </template>
      
      <script>
      //using composition API
      // ...
      setup (props) {
          const data = reactive({
            your: 'Data',
            goes: 'Here',
          })
          const dataRefs = toRefs(data)
      
          const selectOnFocus = (fEv) => fEv.target.select()
          return {selectOnFocus, ...dataRefs }
        },
      // ...
      posted in Help
      G
      gotjoshua

    Latest posts made by gotjoshua

    • RE: How to select text on focus in a QInput

      this can be done more generically:

      <template>
          <q-input
              v-model="who"
              label="Who"
              dense
              @focus="selectOnFocus"
              @keyup.enter="focusOnSubmit"
            />
      </template>
      
      <script>
      //using composition API
      // ...
      setup (props) {
          const data = reactive({
            your: 'Data',
            goes: 'Here',
          })
          const dataRefs = toRefs(data)
      
          const selectOnFocus = (fEv) => fEv.target.select()
          return {selectOnFocus, ...dataRefs }
        },
      // ...
      posted in Help
      G
      gotjoshua