@expensify/react-native-live-markdown 0.1.90 → 0.1.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/MarkdownTextInput.web.js +5 -1
- package/lib/commonjs/MarkdownTextInput.web.js.map +1 -1
- package/lib/module/MarkdownTextInput.web.js +5 -1
- package/lib/module/MarkdownTextInput.web.js.map +1 -1
- package/lib/parser/react-native-live-markdown-parser.js +20 -19
- package/lib/typescript/src/MarkdownTextInput.web.d.ts.map +1 -1
- package/package.json +1 -1
- package/parser/react-native-live-markdown-parser.js +20 -19
- package/src/MarkdownTextInput.web.tsx +6 -1
|
@@ -519,8 +519,13 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
|
|
|
519
519
|
[onClick, updateSelection],
|
|
520
520
|
);
|
|
521
521
|
|
|
522
|
-
const handlePaste = useCallback(() => {
|
|
522
|
+
const handlePaste = useCallback((e) => {
|
|
523
523
|
pasteRef.current = true;
|
|
524
|
+
e.preventDefault();
|
|
525
|
+
|
|
526
|
+
const clipboardData = e.clipboardData;
|
|
527
|
+
const text = clipboardData.getData('text/plain');
|
|
528
|
+
document.execCommand('insertText', false, text);
|
|
524
529
|
}, []);
|
|
525
530
|
|
|
526
531
|
const startComposition = useCallback(() => {
|