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

    Why does child property not work?

    Help
    2
    5
    521
    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.
    • M
      MusicForMellons last edited by

      I am trying to split the quasar uploader into a parent and children, but the file property does not work somehow… Anyone can tell me why? See here for full details.

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

        @MusicForMellons
        file property is not giving error man, i think it’s something else, and i can’t make out what it is in your code sorry. https://codesandbox.io/s/n0xozovrql see console, the file was successfully loaded to child component. i just edited your mounted hook in your child component, mounted hook should be a function. maybe consider upgrading your quasar version too, unless you can’t at this moment since from v.0.14 onward to new version have breaking changes.

        1 Reply Last reply Reply Quote 0
        • M
          MusicForMellons last edited by

          @metalsadman You’re right: mount should be function. However: in your version the picture the file.__img does not load either…, which was the point. The errors in the console are just showing up in codesandbox (for both the ‘one-component’ and ‘parent child’ solutions => should not matter) and are indeed related to quasar version (I found a related issue, which now is solved). I tried/ looked up using quasar v17 with codesandbox, but don’t know how to do it (you install the entire cli…?).

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

            @MusicForMellons
            I can link you a template you can fork for new version here https://codesandbox.io/s/pkv9q2yqlj. all quasar modules are loaded, so you can copy and paste some code from their docs https://quasar-framework.org/components/ or quasar-play https://github.com/quasarframework/quasar-play into a component in the sandbox.

            1 Reply Last reply Reply Quote 1
            • M
              MusicForMellons last edited by

              @metalsadman Great! Thanks!

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