diff --git a/.github/workflows/web-e2e-test.yml b/.github/workflows/web-e2e-test.yml index fb543944..fea3bd9e 100644 --- a/.github/workflows/web-e2e-test.yml +++ b/.github/workflows/web-e2e-test.yml @@ -18,7 +18,7 @@ on: jobs: test: - if: github.repository == 'Expensify/react-native-live-markdown' + if: github.repository == 'QichenZhu/react-native-live-markdown' runs-on: ubuntu-latest concurrency: diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index 05316223..4b2bb011 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -38,6 +38,8 @@ interface MarkdownTextInputProps extends TextInputProps, InlineImagesInputProps interface MarkdownNativeEvent extends Event { inputType?: string; + isComposing?: boolean; + keyCode?: number; } type MarkdownTextInput = TextInput & React.Component; @@ -120,7 +122,6 @@ const MarkdownTextInput = React.forwardRef(false); const divRef = useRef(null); const currentlyFocusedField = useRef(null); const contentSelection = useRef(null); @@ -370,7 +371,7 @@ const MarkdownTextInput = React.forwardRef { - compositionRef.current = true; - }, []); - const endComposition = useCallback( (e: React.CompositionEvent) => { - compositionRef.current = false; handleOnChangeText(e); }, [handleOnChangeText], @@ -788,7 +784,6 @@ const MarkdownTextInput = React.forwardRef