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

Menu no close on item click #13386

Closed

Conversation

jhcpeixoto
Copy link
Contributor

Defect Fixes

🔧 chore(menu.ts): Add closeOnClick input property to Menu component for controlling whether the menu should be closed when a menu item is clicked.

Description

The closeOnClick input property is added to the Menu component to allow developers to control whether the menu should be closed when a menu item is clicked. By default, closeOnClick is set to true, meaning the menu will be closed when a menu item is clicked. This provides more flexibility and customization options for the behavior of the menu component.

Changes Made

  • Added the closeOnClick input property to the Menu component.

jhcpeixoto and others added 4 commits July 4, 2023 16:43
…or controlling whether the menu should be closed when a menu item is clicked

The closeOnClick input property is added to the Menu component to allow developers to control whether the menu should be closed when a menu item is clicked. By default, closeOnClick is set to true, meaning the menu will be closed when a menu item is clicked. This provides more flexibility and customization options for the behavior of the menu component.
… add preventDefault and stopPropagation when closeOnClick is false

🐛 fix(menu.ts): add preventDefault and stopPropagation when closeOnClick is false to prevent default behavior of menuitem click event
The duplicate closeOnClick input declaration has been removed to improve code readability and maintainability. When closeOnClick is false and the menu is a popup, the preventDefault and stopPropagation methods are called to prevent the default behavior of the menuitem click event, ensuring that the menu does not close when a menuitem is clicked.
@vercel
Copy link

vercel bot commented Jul 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 Jul 27, 2023 0:53am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Jul 27, 2023 0:53am

@cetincakiroglu cetincakiroglu added the Status: Discussion Issue or pull request needs to be discussed by Core Team label Aug 7, 2023
@cetincakiroglu cetincakiroglu added this to the 16.Future milestone Aug 7, 2023
@kyjus25
Copy link
Contributor

kyjus25 commented Aug 21, 2023

LGTM!

@cetincakiroglu
Copy link
Contributor

Hi @jhcpeixoto ,

Thank you for taking the time to submit your pull request. We genuinely appreciate your effort and interest in improving our project.

After careful review and consideration, we have decided not to merge your pull request at this time. Please understand that this decision does not reflect negatively on the quality of your work. We value every contribution and understand the effort you've put into it.

However, upon review, we believe that the changes proposed in this pull request may not align with the current goals or direction of the project. Our team is continuously evaluating and prioritizing features and enhancements based on various factors, including project roadmap, user feedback, and technical considerations.

We encourage you to continue contributing to the project and to stay engaged with our community. Your input and contributions are valuable, and we look forward to seeing more of your work in the future.

Once again, thank you for your contribution, and please don't hesitate to reach out if you have any questions or would like further feedback.

Best regards,

@cetincakiroglu cetincakiroglu removed this from the 17.Future milestone Mar 22, 2024
@cetincakiroglu cetincakiroglu removed the Status: Discussion Issue or pull request needs to be discussed by Core Team label Mar 22, 2024
@kyjus25
Copy link
Contributor

kyjus25 commented Mar 22, 2024

In other words, this can probably be solved with passthrough props.

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

Successfully merging this pull request may close these issues.

4 participants