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

135
Views
V-model not working in ant design input component vue 3

I am working with vue 3 and ant design 2x. I am tired trying this code. And I follow vue documentation, I feel something miss. I am stuck with this problem. I hope your conclusion.

           <a-form
               :model="form"
               @submit="handleSubmit"
           >
               <a-form-item class="mb-10">
                   <a-input
                       type="text"
                       v-model="form.name"
                       placeholder="Name"
                   >   
                   </a-input>
                   <a-button type="primary" block html-type="submit">
                       SUBMIT
                   </a-button>
           <a-form>

Thanks in advance for your help.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

After spending plenty of hours, I got the solution from antv example in ant documentation. I update code like this. Different is I update v-model="form.name" to v-model:value="form.name"

           <a-form
           :model="form"
           @submit="handleSubmit"
        >
           <a-form-item class="mb-10">
               <a-input
                   type="text"
                   v-model:value="form.name"
                   placeholder="Name"
                 >   
               </a-input>
               <a-button type="primary" block html-type="submit">
                   SUBMIT
               </a-button>
       <a-form>
about 4 years ago · Juan Pablo Isaza Report
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!