Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
Vue Autocomplete initialDisplay is not displayed

I am using VueJS with Firebase. I am trying to update data using a form. In the form, I am able to get old data in almost all fields. There is an autocomplete field, in which I am not to display the fetched data. The data is present in initialDisplay but not display. It seems like the object is not fetched.

Here is my code

    <CustomerAutoComplete
       description="Select customer associated with this project"
       label="Customer"
       placeholder="Customers"
       @selected="clientSelected"
       :initialValue="projectForm.customerId"
       :initialDisplay="customer"
       v-model="projectForm.customerId"
     />

props: {
    customer: {
      type: Object
    }
  },

data: function () {
    return {
      projectForm: {
        customerId: '',
        address: ''
      } as Project
    }
  },

  methods: {
    clientSelected ({ selectedObject }) {
      this.projectForm.customerId = selectedObject.id

      if (selectedObject.address) this.projectForm.address = selectedObject.address
    },
  },

Here is what I can from the browser console in the Vue tab.

{"id":"op234Sd3FBZHwfLpk16n","companyId":"zErEDd6jE4a0H6bY8u77","name":"Test Customer","email":"test@customer.com"}

In data section, I can Object but no data.

I feel like I am missing something small, no idea what it is.

Thanks in advance for your help!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!