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

    q-input dynamic v-model dont get updated

    Framework
    2
    3
    110
    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.
    • B
      boo001 last edited by

      Hello,
      I have problem. I need to add v-model dynamically. but when I do like this and I enter something in input and I focus out id disappears.
      Here is my Code
      2b23d524-2249-42f5-9739-d0f2110eb4dc-image.png
      Here is how I declare NewData
      9df61065-3442-40a8-9a20-2d279706f88c-image.png

      It works if I declare in data() like this :
      NewData: {
      name_ge: ‘’,
      name_en: ‘’,
      name_fr: ‘’,
      active: false
      }
      But I dont know how many languages there will be in future so I need to add it dynamically.

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @boo001 last edited by

        @boo001 https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats

        B 1 Reply Last reply Reply Quote 1
        • B
          boo001 @metalsadman last edited by

          @metalsadman
          Thanks a Lot 🙌
          It helped me.

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