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

dynamic dialog module (same instances on top of each other) and update deprecated methods #13646

Closed
shayan-ghzl opened this issue Sep 10, 2023 · 4 comments · Fixed by #13647
Closed
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@shayan-ghzl
Copy link
Contributor

Describe the bug

you can open a specific type of dynamic dialog many times on top of each other

example:
https://github.com/shayan-ghzl/angular-primeng-dynamic-dialog-test

stackblitz:
https://stackblitz.com/edit/angular-nw6ebt

Environment

angular verison 16

Reproducer

https://stackblitz.com/edit/angular-nw6ebt

Angular version

16.2.4

PrimeNG version

16.3.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.16.0

Browser(s)

chrome

Steps to reproduce the behavior

No response

Expected behavior

No response

@shayan-ghzl shayan-ghzl added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 10, 2023
@shayan-ghzl shayan-ghzl changed the title dynamic dialog module dynamic dialog module (multiple instances on top of each other) Sep 10, 2023
@shayan-ghzl shayan-ghzl changed the title dynamic dialog module (multiple instances on top of each other) dynamic dialog module (same instances on top of each other) Sep 10, 2023
@SoyDiego
Copy link
Contributor

Hi, thanks for your post.
Your stackblitz has errors.

Import error, can't find files:
../node_modules/primeng/resources/themes/lara-light-blue/theme.css
../node_modules/primeng/resources/primeng.min.css

@cetincakiroglu cetincakiroglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 25, 2023
cetincakiroglu added a commit that referenced this issue Sep 25, 2023
Fix #13646 dynamic dialog module same instances on top of each other/get rid of deprecated implementation
@cetincakiroglu cetincakiroglu added this to the 16.4.0 milestone Sep 26, 2023
@cetincakiroglu cetincakiroglu changed the title dynamic dialog module (same instances on top of each other) dynamic dialog module (same instances on top of each other) and update deprecated methods Sep 26, 2023
@thedavidhoffman
Copy link

This bit us in the behind. We have a scenario where we intentionally have instances on top of each other and this changed the default behavior. Thankfully I found the flag you added for "duplicate" in the DynamicDialogConfig, but I think by default the behavior should have been left alone and a flag added to disallow duplicates.

@shayan-ghzl
Copy link
Contributor Author

@SoyDiego @thedavidhoffman do you want me to make a second PR?
i do not know if you are from primeng team or not but if you want i can create a new PR

@SoyDiego
Copy link
Contributor

@SoyDiego @thedavidhoffman do you want me to make a second PR? i do not know if you are from primeng team or not but if you want i can create a new PR

No, I'm not part of primeng team, but if something is broken with your fix or you can improve it the code before obviously you can do it but first is important create the issue explaining and then the PR :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
4 participants