You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to specify the event that is used to toggle the menu. Currently it's hard coded to use the click event. I think it should be possible to use the same directives for context menus which would require to listen to the the contextmenu event instead of the click event.
Unfortunately I'm not sure how to do this best, because it's not decided within the component but the host. If we can discuss what would be the best way to do it, I could create a PR.
It is possible to manually bind event listeners using Renderer - one could get the element through usage of ElementRef. Be warned though, manually managing this logic is quite a bit of work.
Bug description:
Component: dropdown
It should be possible to specify the event that is used to toggle the menu. Currently it's hard coded to use the click event. I think it should be possible to use the same directives for context menus which would require to listen to the the
contextmenu
event instead of theclick
event.Unfortunately I'm not sure how to do this best, because it's not decided within the component but the host. If we can discuss what would be the best way to do it, I could create a PR.
Version of Angular, ng-bootstrap, and Bootstrap:
Angular: 2.1.2
ng-bootstrap: 1.0.0-alpha.14
Bootstrap: 4.0.0-alpha.4
The text was updated successfully, but these errors were encountered: