Closed Jarkyy closed 8 years ago
Solved the issue with non-breaking space.
When the element the context-menu is attached to has no "size" (such as when there's no text inside), there's really no way to "click" that element. If you look at it under Inspect Element, it normally wont show at all. Adding a non-breaking space makes the containing div/p have a size which you can click/right-click onto.
I have data grid with some empty cells and I need to be able to open context menu for those cells too. Problem is that context menu works fine for cells with some value, but not for those without value.
This works:
<div><p context-menu="taskContextMenu(6,2,'true','false')" title="VS">VS</p></div>
Not working:
<div><p context-menu="taskContextMenu(6,2,'true','false')"></p></div>