bug ConfirmDialog (async accept\reject) #1454
Labels
Resolution: Cannot Replicate
Issue could not be replicated by Core Team
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
When using await in the accept or reject functions, a crash occurs
I use it like this:
this.$confirm.require({ message: "123", header: "123", icon: "pi pi-exclamation-triangle", accept: () => { let res = await component.onAttach(event.files[i]); }, reject: async () => {}, });
dialog.esm.js?5bd2:117 Uncaught (in promise) TypeError: Cannot read property 'style' of null at Proxy.onEnter (dialog.esm.js?5bd2:117) at callHook (runtime-dom.esm-bundler.js?830f:755) at eval (runtime-dom.esm-bundler.js?830f:798) at Object.enter (runtime-core.esm-bundler.js?5c40:1720) at Array.eval (runtime-core.esm-bundler.js?5c40:4158) at flushPostFlushCbs (runtime-core.esm-bundler.js?5c40:7189) at flushJobs (runtime-core.esm-bundler.js?5c40:7226)
Vue version: 3.2.2
PrimeVue version: 3.6.4
Browser: [Chrome XX ]
The text was updated successfully, but these errors were encountered: