a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't block when in inputs

+8 -1
+8 -1
components/SelectionManager.tsx
··· 499 499 if (!rep) return; 500 500 let [, , selectionWithFoldedChildren] = await getSortedSelection(); 501 501 if (!selectionWithFoldedChildren) return; 502 + let el = document.activeElement as HTMLElement; 503 + if ( 504 + el?.tagName === "LABEL" || 505 + el?.tagName === "INPUT" || 506 + el?.tagName === "TEXTAREA" 507 + ) { 508 + return; 509 + } 502 510 503 - let el = document.activeElement as HTMLElement; 504 511 if ( 505 512 el.contentEditable === "true" && 506 513 selectionWithFoldedChildren.length <= 1