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

AutoDisplay mode to menubar #2449

Closed
Yoranium238 opened this issue Apr 3, 2017 · 8 comments
Closed

AutoDisplay mode to menubar #2449

Yoranium238 opened this issue Apr 3, 2017 · 8 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@Yoranium238
Copy link

Yoranium238 commented Apr 3, 2017

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[ x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
Current behavior to display options for the primary menu item is to hover over that item.

Expected behavior
The request is to have the option of controlling this behavior through hover or click actions.

What is the motivation / use case for changing the behavior?
User population expects sub-menu to display using a click action (i.e. mouse) rather than a mouse hover over.

Please tell us about your environment:

  • Angular version: 2.4.10

  • PrimeNG version: 2.0.5

  • Browser: [all ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

@Yoranium238 Yoranium238 changed the title Feature Requet - Support option for click-to-display sub-menus as an alternative to hover-to-activate from primary menu options Feature Requet - Support option for click-to-display sub-menus as an alternative to hover-to-display from primary menu options Apr 3, 2017
@Yoranium238 Yoranium238 changed the title Feature Requet - Support option for click-to-display sub-menus as an alternative to hover-to-display from primary menu options Feature Request - Support option for click-to-display sub-menus as an alternative to hover-to-display from primary menu options Apr 3, 2017
@Yoranium238 Yoranium238 changed the title Feature Request - Support option for click-to-display sub-menus as an alternative to hover-to-display from primary menu options Feature Request - Support Menubar option for click-to-display sub-menus as an alternative to hover-to-display from primary menu options Apr 3, 2017
@marcosybarraa
Copy link

Would be a great feature, I´m looking forward to have it asap, very useful.

There is a old fork with that feature, "autoDisplay" :
https://github.com/mcwebdev/ngprime/blob/master/app/components/vendor/primeng/menubar/menubar.ts

@Abbraxar
Copy link

Abbraxar commented May 5, 2017

And hover is useless on mobiles.
It's impossible to display the subitems with them.

@cagataycivici
Copy link
Member

We have autoDisplay mode in PrimeFaces which does exactly the same, adding this as an enhancement. By the way, mobile browsers like iOS execute hover on click.

@cagataycivici cagataycivici self-assigned this Jun 22, 2017
@cagataycivici cagataycivici changed the title Feature Request - Support Menubar option for click-to-display sub-menus as an alternative to hover-to-display from primary menu options AutoDisplay mode to menubar Jun 22, 2017
@cagataycivici cagataycivici added this to the 4.1.1 milestone Jun 22, 2017
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label Jun 22, 2017
@Abbraxar
Copy link

I only tested it on Android Chrome and Chrome dev tools, it's interresting to know for the iOS behaviour thank you !

@Yoranium238
Copy link
Author

Any traction on this? It appears to have been removed from 4.1.1.

@Merve7 Merve7 self-assigned this Jan 11, 2018
@Merve7 Merve7 closed this as completed in 77e624c Jan 11, 2018
@Merve7 Merve7 added this to the 5.1.0-RC1 milestone Jan 11, 2018
@mpeccorini
Copy link

I'm still having this issue on android using PrimeNG 5.2.0 in an application generated by Celerio Angular Quickstart (https://github.com/jaxio/celerio-angular-quickstart/tree/master/quickstart). The usage of the menubar is very basic so I wouldn't expect the way in which the application is generated to have anything to do with the problem.

@Venthe
Copy link
Contributor

Venthe commented Jun 14, 2018

@Merve7 Not only this does not resolves problems presented in linked issues (Namely menubar is unusable on android as noted in #2931 ) but it does not fully fix this issue as well - as AutoDisplay mode wil switch the behaviour on the first level, but second and any subsequent levels will still work on hover.

@youngnacs
Copy link

This happens on PrimeNG 7.0.0 as well. Otherwise I need to detect device whether mobile or desktop to toggle AudoDisplay value. Any update on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

8 participants