You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
It's possible to put the cursor within an atomic range by right clicking within it. After closing the context menu the cursor remains within the atomic range. Normal click at the same spot does not put the cursor within the range.
Describe the issue
It's possible to put the cursor within an atomic range by right clicking within it. After closing the context menu the cursor remains within the atomic range. Normal click at the same spot does not put the cursor within the range.
Browser and platform
Chrome 138 on MacOS 15.3
Reproduction link
https://codemirror.net/try/#c=aW1wb3J0IHtiYXNpY1NldHVwLCBFZGl0b3JWaWV3fSBmcm9tICJjb2RlbWlycm9yIgppbXBvcnQge1ZpZXdQbHVnaW59IGZyb20gIkBjb2RlbWlycm9yL3ZpZXciCmltcG9ydCB7UmFuZ2VTZXRCdWlsZGVyfSBmcm9tICJAY29kZW1pcnJvci9zdGF0ZSIKaW1wb3J0IHtqYXZhc2NyaXB0fSBmcm9tICJAY29kZW1pcnJvci9sYW5nLWphdmFzY3JpcHQiCgpmdW5jdGlvbiBhdG9taWNSYW5nZXModmlldykgewogICAgY29uc3QgZG9jID0gdmlldy5zdGF0ZS5kb2M7CiAgICBsZXQgYnVpbGRlciA9IG5ldyBSYW5nZVNldEJ1aWxkZXIoKQoKICAgIC8vIGF0b21pYyByYW5nZSBmb3IgbGluZSAzCiAgICBjb25zdCB0YXJnZXRMaW5lID0gMzsKICAgIGlmIChkb2MubGluZXMgPj0gdGFyZ2V0TGluZSkgewogICAgICAgIGNvbnN0IGxpbmUgPSBkb2MubGluZSh0YXJnZXRMaW5lKTsKICAgICAgICBidWlsZGVyLmFkZChsaW5lLmZyb20tMSwgbGluZS50bysxLCB7fSkKICAgIH0KICAgIHJldHVybiBidWlsZGVyLmZpbmlzaCgpCn0KY29uc3QgYXRvbWljUGx1Z2luID0gVmlld1BsdWdpbi5mcm9tQ2xhc3MoCiAgICBjbGFzcyB7CiAgICAgICAgY29uc3RydWN0b3IodmlldykgewogICAgICAgICAgICB0aGlzLmF0b21pY1JhbmdlcyA9IGF0b21pY1Jhbmdlcyh2aWV3KQogICAgICAgIH0KICAgICAgICB1cGRhdGUodXBkYXRlKSB7CiAgICAgICAgICAgIGlmICh1cGRhdGUuZG9jQ2hhbmdlZCkgewogICAgICAgICAgICAgICAgdGhpcy5hdG9taWNSYW5nZXMgPSBhdG9taWNSYW5nZXModXBkYXRlLnZpZXcpCiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9LAogICAgewogICAgICAgIHByb3ZpZGU6IHBsdWdpbiA9PiBFZGl0b3JWaWV3LmF0b21pY1Jhbmdlcy5vZih2aWV3ID0+IHsKICAgICAgICAgICAgcmV0dXJuIHZpZXcucGx1Z2luKHBsdWdpbik/LmF0b21pY1JhbmdlcyB8fCBbXQogICAgICAgIH0pCiAgICB9CikKCm5ldyBFZGl0b3JWaWV3KHsKICBkb2M6ICJjb25zb2xlLmxvZygnaGVsbG8nKVxubGluZSAyXG50aGlzIHdob2xlIGxpbmUgaXMgYW4gYXRvbWljIHJhbmdlXG5saW5lIDQiLAogIGV4dGVuc2lvbnM6IFthdG9taWNQbHVnaW4sYmFzaWNTZXR1cF0sCiAgcGFyZW50OiBkb2N1bWVudC5ib2R5Cn0pCg==