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

Fix #13768 Add support of focusOnShow for DynamicDialog #13760

Closed
wants to merge 2 commits into from

Conversation

mass4441
Copy link

@mass4441 mass4441 commented Sep 27, 2023

Fix #13768

Currently focusOnShow is only available for DIalog, this PR add support of focusOnShow also for DynamicDialog

@vercel
Copy link

vercel bot commented Sep 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
primeng-ssr-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2023 6:39am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Sep 28, 2023 6:39am

@vercel vercel bot temporarily deployed to Preview – primeng-ssr-test September 27, 2023 10:51 Inactive
@@ -161,6 +161,10 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy {
return this.config.minY ? this.config.minY : 0;
}

get focusOnShow(): boolean {
return this.config.focusOnShow ? this.config.focusOnShow : true;
Copy link
Contributor

@SoyDiego SoyDiego Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to suggest the line return this.config.focusOnShow ?? true;
And also you should edit your first post adding Fix #Number-Of-Issue-That-You-Are-Resolving and when PrimeNG Team approve it, will close automatically.

Thanks

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for feedback.
There's no issue created for this change. Is it mandatory to have one before creating a PR ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please, if you can create the issue and link this PR to the issue will be great
Thanks for your contribution

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done !

@vercel vercel bot temporarily deployed to Preview – primeng-ssr-test September 28, 2023 06:39 Inactive
@mass4441 mass4441 changed the title Add support of focusOnShow for DynamicDialog Fix #13768 Add support of focusOnShow for DynamicDialog Sep 28, 2023
Copy link

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@github-actions github-actions bot added the Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response label Jan 27, 2024
Copy link

github-actions bot commented Feb 4, 2024

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you for your understanding!

@github-actions github-actions bot closed this Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Stale Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DynamicDialog: Add support for focusOnShow (like Dialog component)
2 participants