Closed dbriscoe511 closed 1 year ago
Indeed, showcontextmenu
has nothing to do with preventing the default context menu. If you need to "prioritize" your textarea's context menu, you can add "stopPropagation" to its contextmenu event.
Oh yep, you are totally right. Thanks for your help
@dbriscoe511 you have not accepted your invitation yet 🙂
I would like to have the browser default spellcheck accessible when the user clicks on a item that allows spellcheck (IE a
textarea
).I wrote some code to accomplish this:
And the code to disable the context menu
I confirmed that this disables the context menu correctly. however, if this menu is disabled, the browser default behavior (showing a menu that includes spellcheck) does not show up. I would think if this menu is disabled, the default behavior would come back, but I may just be missing something.