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

    QDate with QInput, date not change when update value

    Help
    2
    3
    602
    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.
    • T
      tdviam last edited by

      Hi all,
      My Quasar version is v1.0.0 and I am using QDate with QInput like this:

      <q-input outlined v-model="datePickupOrg">
            <template v-slot:append>
              <q-icon name="event" class="cursor-pointer">
                <q-popup-proxy ref="qDateProxy" transition-show="scale" transition-hide="scale">
                  <q-date v-model="datePickupOrg" mask="DD-MM-YYYY"
                          @input="() => $refs.qDateProxy.hide()"/>
                </q-popup-proxy>
              </q-icon>
            </template>
      </q-input>
      

      I have 2 functions, one is Add New Date and one is Update Date. With Add New Date, I choose a date from popup and the date is showed in QInput. With Update date, the date is loaded correctly. However, when I choose a new date, the date is not updated in QInput until I do an action like Submit button.
      I am not sure if I am using wrong code anywhere. Anyone can help me to fix it? Thanks!

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Can you make a codepen to demonstrate your code and your intentions?

        Scott

        1 Reply Last reply Reply Quote 0
        • T
          tdviam last edited by

          It is a good suggestion. Yeah, I tried a simple sample in codepen and the issue has not happened. Maybe there are something wrong in my project. Thanks!

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