Skip to content

Commit c42d2e1

Browse files
committed
fix non-deterministic bug with slateJS(?)
1 parent 0fb8357 commit c42d2e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-textarea/src/components/copilot-textarea/render-element.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const SuggestionElement = (props: RenderElementProps) => {
2121
}}
2222
contentEditable={false}
2323
>
24+
{props.children /* https://github.com/ianstormtaylor/slate/issues/3930 */}
2425
{props.element.type === "suggestion" && props.element.content}
2526
</span>
2627
);

0 commit comments

Comments
 (0)