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

    Help on q-chat-message

    Framework
    2
    4
    483
    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.
    • I
      ilabutk last edited by ilabutk

      Somehow :text in q-chat-message leads to the following error. Any help? texts were fetched on mounted () via axios.

      <div v-for="item in texts"
                    v-bind:key="item.index">
        <q-chat-message
                    name="cname"
                    :avatar="avatar_person"
                    :text="[item.sometext]"
                    text-sanitize
                    sent
                  />
      ... 
      
      Property or method "text" is not defined on the instance but referenc
      ed during render. Make sure that this property is reactive, 
      either in the data option, or for class-based components, 
      by initializing the property.
       See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
      
      
      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • s.molinari
          s.molinari last edited by

          This shouldn’t be happening. Hard to tell what is wrong without all of the code in use.

          Scott

          1 Reply Last reply Reply Quote 0
          • I
            ilabutk last edited by

            Indeed. It should not happen. I finally traced back to another block of code where text was used. After fixing that, it is all good. Thanks.

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