From 2627931eb931febaf26dfa7964f35adbc748be24 Mon Sep 17 00:00:00 2001 From: charles Date: Sat, 11 May 2024 00:59:34 +0900 Subject: [PATCH] fix: IOU - one character descriptions are not saved - the diacritic inside a bold block doesn't work --- src/MarkdownTextInput.web.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index 60286901..719dfc1e 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -62,6 +62,7 @@ interface MarkdownTextInputProps extends TextInputProps { interface MarkdownNativeEvent extends Event { inputType: string; + data: string; } type Selection = { @@ -329,8 +330,7 @@ const MarkdownTextInput = React.forwardRef( return; } const nativeEvent = e.nativeEvent as MarkdownNativeEvent; - - if (compositionRef.current && nativeEvent.inputType !== 'insertCompositionText') { + if (compositionRef.current && (nativeEvent.inputType !== 'insertCompositionText' || nativeEvent.data !== '*')) { updateTextColor(divRef.current, e.target.innerText); compositionRef.current = false; return;