We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24806ed commit ee49ec6Copy full SHA for ee49ec6
frontend/src/components/molecules/BlockModal/BlockModal.tsx
@@ -130,13 +130,13 @@ function BlockModal(): JSX.Element {
130
const modalEL = useRef<HTMLDivElement>();
131
132
const createBlockHandler = async (type: string) => {
133
- startTransaction();
+ // startTransaction();
134
const newBlock = await insertNewSibling({ type }, blockIndex + 1);
135
const content =
136
block.value.substring(0, modal.caretOffset - 1) +
137
block.value.substring(modal.caretOffset);
138
await setBlock(modal.blockId, { value: content });
139
- commitTransaction();
+ // commitTransaction();
140
setFocus(newBlock);
141
};
142
0 commit comments