Why does child property not work?
-
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. -
@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. -
@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…?).
-
@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. -
@metalsadman Great! Thanks!