ngContextMenu
ngContextMenu copied to clipboard
is it possible to change to left click instead of right click?
is it possible to change to left click instead of right click?
Yes it is, but it's somewhat experimental. Please close this ticket if everything works out :+1:
Wow, thanks for the fast response,
well it worked, but it cause different issue, when i click inside the element, it perform a click on different element and open the menu again, any idea why?
I'm attaching an image to demonstrate.
Hmm.
On your popup element, could you trap the onClick
event and invoke event.stopPropagation
? It seems as though the event is bubbling up to the "DNS" container.
works like a magic, thanks so much!
No problem :+1:
@Wildhoney any chance you know how to handle the case that the modal will be sticked and not scrolled with the page (i guess it's related to the position fixed) i'm attaching an image.
Try position: fixed
on the context menu's container :+1:
it's already fixed, your code add's the position fixed to it...
Ah bugger — yep. position: absolute
? We use fixed
because that mimics the browser's behaviour for context menus.