Skip to content

Commit 1df33b7

Browse files
zaiddabaeenmarijnh
authored andcommitted
clip-path issue fixed in Chrome 106
In Chrome 105, `clip-path` needed to be set as pointer events were ineffective outside CodeMirror editor instance but within paddings and margins of its elements. This has been resolved in Chrome 106 as seen [here](https://issues.chromium.org/issues/40863245#comment21).
1 parent 8a5dcbb commit 1df33b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/display/Display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function Display(place, doc, input, options) {
4949
// The element in which the editor lives.
5050
d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror")
5151
// See #6982. FIXME remove when this has been fixed for a while in Chrome
52-
if (chrome && chrome_version >= 105) d.wrapper.style.clipPath = "inset(0px)"
52+
if (chrome && chrome_version === 105) d.wrapper.style.clipPath = "inset(0px)"
5353

5454
// This attribute is respected by automatic translation systems such as Google Translate,
5555
// and may also be respected by tools used by human translators.

0 commit comments

Comments
 (0)