Right clicking inside CodeMirror instance causes textarea to show from then on #3241
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This happens only in chrome and only in certain circumstances that I haven't been able to narrow down yet. When I right click my CodeMirror instance the hidden textarea shows up and never goes away.

It is caused by setting
position: fixedhere https://github.com/codemirror/CodeMirror/blob/master/lib/codemirror.js#L1464, but removing theposition: fixedfrom that cssText causes the context-menu to not have copy/cut/paste https://github.com/codemirror/CodeMirror/issues/3238It seems like Chrome doesn't respect the
position: absolutewhen it gets changed back in the rehide function.I have added
opacity: 0to the textarea and everything seems to work. Anyone know of any issues it might could cause?So after putting back the
cssText(which presumably contains aposition: absolute) the element's.style.positionis still"fixed"? I don't want to sweep the bug under the rug with anopacity: 0, I'd rather figure out what is going wrong and how we can work around it. Is there any way I can reproduce the issue?I haven't been able to figure out what causes this bug to manifest. I can tell you that where this bug shows up for me, that the screen shot above is from, is deeply nested inside several absolute positioned elements several of which are animated. I can actually cause this bug just by setting the textarea's position to fixed, then changing it back to absolute, with 0 right clicks.
Interesting. If you can submit a (minimal) test HTML page that allows me to reproduce this, that would be useful.
Hi, I have the same problem!! Any have a good solution!!!
Closing until a test case shows up.
Same issue here, we're using CodeMirror with ui-codemirror.
Don't know how to reproduce, but will submit a test HTML when I can reproduce it.