We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2307233 commit 990ab6aCopy full SHA for 990ab6a
lib/codeit.js
@@ -152,7 +152,6 @@ 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