Skip to content

Commit e0c4e74

Browse files
committed
Add user-select: none to placeholder element
FIX: Fix an issue where some browsers wouldn't enable context menu paste when clicking on placeholder text. Closes codemirror/dev#1542
1 parent 8d79e46 commit e0c4e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export const baseTheme = buildTheme("." + baseThemeID, {
246246
color: "#888",
247247
display: "inline-block",
248248
verticalAlign: "top",
249+
userSelect: "none"
249250
},
250251

251252
".cm-highlightSpace": {

0 commit comments

Comments
 (0)