-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog plugin bug, with this.$q.dialog, generate error "[Vue warn]: Error in mounted hook: "TypeError: EventTarget.dispatchEvent: Argument 1 does not implement interface Event."" #7847
Comments
Hi, I cannot reproduce it with the codepen that you supplied (?!). |
Hi Yes as I noted above, the issue is not visible on codepen, but the code is the same Probably due to the config, or I don't know. It's also visible here with current version And we can see in the console that it's related to this, in dev mode
in global-dialog.js
|
No one had this before (and it's years since the Dialog plugin exists). The intuition says "look, there's a problem there on line number X. fix the code there". But the bigger picture is that this shouldn't happen at all and might reveal something else -- the real root cause. But without being able to reproduce this, it's impossible to help. |
Hi Thanks. |
For some reason, in your scenario, Using CustomEvent instead of Event. Will be available in Quasar v1.14.1. |
Describe the bug
Dialog plugin bug, with this.$q.dialog,
when calling the this.$q.dialog,
generate Console error when it's showing
But the diaolog works...
Using latest VueJs and Quasar of past 3 weeks.
Quasar CLI
Pkg quasar........ v1.13.2
Pkg @quasar/app... v2.0.9
Dev mode.......... spa
Transpiled JS..... yes (Babel) - includes IE11 support
used in a component Layout
methods
removeObject (id) {
this.$q.dialog({
title: 'Supprimer ?',
color: 'orange',
icon: 'warning',
message: 'Voulez-vous vraiment supprimer cet objet ?',
cancel: true,
persistent: true
}).onOk(data => {
console.log('removeObject onOk')
console.log('removeObject id', id)
this.doActions.removeObject = id
}).onCancel(() => {
console.log('removeObject onCancel')
}).onDismiss(() => {
// console.log('I am triggered on both OK and Cancel')
})
}
Codepen/jsFiddle/Codesandbox (required)
https://codepen.io/renaudham/pen/xxVNJoo
but here the bug doesnt appears
To Reproduce
Steps to reproduce the behavior:
the bug appears in CONSOLE only
It's repeating on hiding, cancel or Ok
with another console error
TypeError: EventTarget.dispatchEvent: Argument 1 does not implement interface Event.
__hide QDialog.js:262
__processHide model-toggle.js:110
hide model-toggle.js:95
hide DialogPlugin.js:121
Expected behavior
having no console warning
Screenshots
Platform (please complete the following information):
OS: Windows 10 latest
Node: Using Quasar CLI
NPM: npm@6.1.0
Yarn: -
Browsers: Firefox or Chrome, latest
iOS: -
Android: -
Electron: -
Additional context
The text was updated successfully, but these errors were encountered: