Closed fx-991ES closed 1 year ago
Following up with some more info after I did some digging. My analysis of what is happening may be somewhat flawed as I only dabble in js and do not have comprehensive knowledge - but hopefully it is useful for helping to fix the issue.
In quasar_component.js
on line 284 (link) event.stopPropagation()
is called on the raised 'input' type event which fires when the user types in QEditor.
However the 'event' itself is not an instance of Event and therefore does not have a .stopPropagation()
function that can be called. This causes the following error to be thrown and displayed in the console:
TypeError: event.stopPropagation is not a function
at a.eventFunction (quasar_component.js:284:23)
at a.inputEvent (quasar_component.js:187:18)
at dn (vue.js:11:21974)
at a.r (vue.js:11:10396)
at dn (vue.js:11:21974)
at t.$emit (vue.js:11:44375)
at a.__onInput (quasar.js:6:249086)
at dn (vue.js:11:21974)
at HTMLDivElement.r (vue.js:11:10396)
at i._wrapper (vue.js:11:59525)
I think this means that the rest of the event is not processed and the value not passed to justpy.
Thanks for the report - looks like a low hanging fruit then. Tim can you move the issue example to the issues part so that we can check it on http://justpy-demo.bitplan.com
see #685
When using QEditor if the
event_propagation
argument is set toFalse
then it is not possible to obtain the value from inside the field.example code to reproduce:
Expected behaviour is that after inputting some text in the editor and pressing the 'Add Comment' button the text that was input should be printed.
Config note: I am using Quasar 1.22.5