-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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(md-menu) : Added prevent close( when user clicks inside menu panel) feature. #3897
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
Signed in
…On Tue, Apr 4, 2017, 9:54 PM googlebot ***@***.***> wrote:
Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 *Please visit https://cla.developers.google.com/
<https://cla.developers.google.com/> to sign.*
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.
------------------------------
- If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data <https://cla.developers.google.com/clas> and verify
that your email is set on your git commits
<https://help.github.com/articles/setting-your-email-in-git/>.
- If you signed the CLA as a corporation, please let us know the
company's name.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3897 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFbP0lOUexHu0TEnRCaY170gBY8kHmvWks5rsm66gaJpZM4MzGqH>
.
|
CLAs look good, thanks! |
Hey @ravinderpayal, as a heads up, the team will certainly ask for tests to verify the behavior of the api change. You should also try to get your linting issues fixed before review. It looks like a couple of the comments are unnecessary / not formatted correctly. Additionally, consider using Finally, it would be a good idea to explain your motivation behind the change in your original comment! |
@willshowell Thanks Sir, I will consider your thoughts, and thanks one more time for clearing my doubts about failure of travis build. |
Added more brevity in comments, and aligned them according to the CODE STANDARDS.
satisfying travis-ci
satisfying travis
satisfying travis ci, and finally it will be satisfied
Travis Build Passed, and @wilshowell I have kept the |
As a few more notes, JSDoc comments ( Again, tests will be required by the team, so you should add those too. Good luck with your PR! |
Ok brother
…On Wed, Apr 5, 2017, 7:39 PM Will Howell ***@***.***> wrote:
As a few more notes, JSDoc comments (/** */) should only be used for api
purposes (like preventClose and toggleMenu) while you should use standard
line comments (//) elsewhere.
Again, tests will be required by the team, so you should add those too.
Good luck with your PR!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3897 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFbP0gitXbI8D41NRKGTT0VU92hTRrXMks5rs6CEgaJpZM4MzGqH>
.
|
👏 |
I need this! :D Thank you @ravinderpayal |
While working on some other project I found a better option, let me patch mine code. |
@zmanring @agostinalucia @mprobst @willshowell I have created a fresh pull request after testing working of code. This current commits are not required. I have added |
Closing since this is now quite stale. I think this feature has come up a few times in issue discussion and we've decided that we wouldn't want to add this option to mat-menu since it would go against W3C a11y recommendations. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
As It's a feature the core team decided to add, and I was in need of this feature for functionality like drop-down menu having some setting controls where user may want to change multiple settings in one go. As currently after every click inside or outside of drop-down menu, it disappears. But adding some additional check based on the value of preventClose @input() supplied parent node can add this desired functionality. Actually I am creating a emoji picker, and have multiple categories of emoji, so user is required to change the category by clicking on tabs(Yeah I am using MD-tabs), menu disappears so this feature will help in accomplishing my specific requirement, and other people's similar requirements.