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

Getting this issue Only one instance of an embedded mdl-dialog can exist! #1892

Open
deepak-csols opened this issue May 21, 2024 · 0 comments

Comments

@deepak-csols
Copy link

deepak-csols commented May 21, 2024

I have using more 10 dialog boxes around the application. Few of them are very frequently used. After sometime i started getting this error which makes our application very slow. Can you please guide us what will be the main cause behind it.

We are use declarative approach here.

We are using angular version 5.

error occured here Error: Only one instance of an embedded mdl-dialog can exist!
at MdlDialogComponent.push../node_modules/@angular-mdl/core/components/dialog/mdl-dialog.component.js.MdlDialogComponent.show (main.277caef9d38a82c98bf3.js:2487)
at BillingComponent.openRemarkPopup (/C:/Users/Admin/AppData/Local/digirestro_desktop/app-1.3.65/resources/app.asar/dist/DigirestFront/0.29af2e9ce5b05b32eea0.js:105848)
at Object.handleEvent (/C:/Users/Admin/AppData/Local/digirestro_desktop/app-1.3.65/resources/app.asar/dist/DigirestFront/0.29af2e9ce5b05b32eea0.js:101916)
at Object.handleEvent (main.277caef9d38a82c98bf3.js:37215)
at Object.handleEvent (main.277caef9d38a82c98bf3.js:37978)
at dispatchEvent (main.277caef9d38a82c98bf3.js:33631)
at main.277caef9d38a82c98bf3.js:34291
at HTMLButtonElement. (main.277caef9d38a82c98bf3.js:59117)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.9c8f2d6eba63913a6427.js:2743)
at Object.onInvokeTask (main.277caef9d38a82c98bf3.js:28934)

Do we need add checks before opening the dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant