We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee92ec1 commit cfde378Copy full SHA for cfde378
client/src/components/Block/TextBlock.tsx
@@ -90,6 +90,8 @@ function TextBlock({
90
if (!blockRef.current) return;
91
92
blockRef.current.innerText = readCRDT();
93
+
94
+ updateCaretPosition();
95
};
96
97
const onInsert = (op: RemoteInsertOperation) => {
client/src/hooks/useOffset.ts
@@ -53,8 +53,12 @@ export function useOffset(blockRef: React.RefObject<HTMLParagraphElement>) {
53
}
54
55
56
+ const onClick = () => {
57
+ setOffset();
58
+ };
59
60
const offsetHandlers = {
- onClick: setOffset,
61
+ onClick,
62
onBlur: clearOffset,
63
onKeyUp: onArrowKeyup,
64
0 commit comments