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-datetime

    Help
    3
    4
    1551
    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.
    • P
      pablozabo last edited by

      Hello, I get the following error when I try to use q-datetime component:

      [Vue warn]: Missing required prop: “value”
      (found in component <q-inline-datetime>)

      My template looks like this:

      <q-datetime
      v-model=“model”
      type=“date”

      </q-datetime>

      and the js:

      import moment from ‘moment’
      // …
      export default {
      data () {
      return {
      model: moment().format(),
      // …
      }
      },
      // …
      }

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

        It looks ok to me, is this in a single vue file ?

        1 Reply Last reply Reply Quote 0
        • P
          pablozabo last edited by

          yes, it’s a.vue file. q-datetime is the only component that doesn’t work.

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

            I guess vue-loader would complain if the html is not valid, but this is the only thing i can come up with. Have you looked at the render function output the loader generates ?

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