We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f48ac commit 2307233Copy full SHA for 2307233
lib/codeit.js
@@ -152,6 +152,7 @@ class CodeitElement extends HTMLElement {
152
// if text is big, highlight cursor node first,
153
// then highlight rest of codeit when finished typing
154
if (cd.textContent.length > 5000 &&
155
+ window.getSelection().type !== 'None' &&
156
document.activeElement === cd) {
157
158
// get caret pos in text
0 commit comments