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

    Autocomplete hook beforedestroy issue. HELP

    Help
    3
    7
    1068
    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.
    • J
      janyjan last edited by

      I can’t seem to use autocomplete in my component. I always got this error.
      I also made sure that it was imported already in my main.js
      0_1511930310086_b36f3d5f-beca-4922-91a4-9ef3d64f314a-image.png

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

        Are you using quasar-edge?

        I’ve seen a related issue before. Is autocomplete working otherwise?

        This definitely is a bug

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

          Hi,
          Can you paste the vue component where you are using Autocomplete, please? That error should NOT occur. I’m interested to see details on your use-case. Thanks!

          J 1 Reply Last reply Reply Quote 0
          • J
            janyjan @benoitranque last edited by

            @benoitranque No, not using quasar-edge. I’m using 0.14 version. I also tried downgrading to previous versions, still the same… That was my initial thought, but maybe its just an environment issue because I’m using docker. I’m still trying to figure out what’s causing this. For the mean time I’ll just use other ways till new updates come in that might fix the issue, I guess.

            1 Reply Last reply Reply Quote 0
            • J
              janyjan @rstoenescu last edited by janyjan

              @rstoenescu
              Sorry for the late reply. I did not have a copy of my initial implementation where i was using a the ‘auto-complete’ component. But I have created a new component which satisfies my initial use case. The error is still the same btw.

              <template>
                <div>
                    <q-card-title>
                      AutoComplete Test
                    </q-card-title>
                    <q-card-main>
                      <q-search inverted color="secondary" v-model="terms" placeholder="Featuring static data">
                        <q-autocomplete
                          :static-data="{field: 'value', list: countries}"
                          @selected="selected"
                        />
                      </q-search>
                    </q-card-main>
                </div>
              </template>
              
              <script>
              import countries from '../../../../data/countries.json'
              export default {
                data () {
                  return {
                    terms: '',
                    countries
                  }
                }
              }
              </script>
              
              
              <style>
              </style>
              

              I have a parent component that has a ‘tab’ component which uses this sub component.

              1 Reply Last reply Reply Quote 0
              • J
                janyjan last edited by

                Update:
                I can confirm that this issue only occurs in my local (docker) environment. I tried to push the above test component on heroku where my prestaging setup is, and it is working fine. Though I still don’t know what causes the issue locally(docker).

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

                  Thanks for keeping us updated. Have you tried transferring your code to a new quasar install? That helps, especially if you have updated quasar before

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