Skip to content
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

bug ConfirmDialog (async accept\reject) #1454

Closed
NeluQi opened this issue Aug 17, 2021 · 2 comments
Closed

bug ConfirmDialog (async accept\reject) #1454

NeluQi opened this issue Aug 17, 2021 · 2 comments
Assignees
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

Comments

@NeluQi
Copy link

NeluQi commented Aug 17, 2021

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 () => {}, });

image

image

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 ]

@cagataycivici cagataycivici self-assigned this Aug 19, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 19, 2021
@cagataycivici cagataycivici added this to the 3.7.0 milestone Aug 19, 2021
@tugcekucukoglu
Copy link
Member

What is your exact test case? I didn't replicate it with codesandbox sample. In this example I didn't get any error.

@mertsincan mertsincan added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label Aug 26, 2021
@mertsincan mertsincan self-assigned this Aug 26, 2021
@mertsincan mertsincan removed this from the 3.7.0 milestone Aug 26, 2021
@tugcekucukoglu
Copy link
Member

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants