From c0624afe39dcd369f6f314f1dff684363b105379 Mon Sep 17 00:00:00 2001 From: Bela Berentes Date: Thu, 23 Mar 2023 13:47:40 +0100 Subject: [PATCH] Disable nested scroll when autosize is enabled --- package.json | 2 +- src/editor/quill-editor.tsx | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 61225f3..343e052 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-cn-quill", - "version": "0.7.17", + "version": "0.7.18", "description": "react-native quill richtext editor", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/editor/quill-editor.tsx b/src/editor/quill-editor.tsx index 334fa23..dbe6bc2 100644 --- a/src/editor/quill-editor.tsx +++ b/src/editor/quill-editor.tsx @@ -383,10 +383,12 @@ export default class QuillEditor extends React.Component< content: string, style: StyleProp, props: WebViewProps = {} - ) => ( - { + const { autoSize } = this.props; + + return - ); + }; render() { const { webviewContent, height } = this.state;