swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.24k stars 744 forks source link

Cursor issue when context menu is shown #671

Closed ndvbd closed 5 years ago

ndvbd commented 5 years ago

I am creating a context menu on an element which contains some editable text. When the context menu is shown, the cursor over the text is changed (I don't want it) from being text to 'default'. I don't know why. Is it done programmatically inside the jquery contextMenu code, or is it because the contextMenu changes the focus or something? I think it's because of the context-menu-layer which covers the whole screen, and affects other elements besides the context-menu. Is the context-menu-layer necessary for the functionality of the contextMenu? How can we avoid this problem?

bbrala commented 5 years ago

Seems like this CSS is the reason. Perhaps you could overwrite this?

.context-menu-input.context-menu-hover {
  cursor: default;
  color: $context-menu-text-color;
}