@expensify/react-native-live-markdown 0.1.48 → 0.1.50
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 +2 -2
- package/lib/commonjs/MarkdownTextInput.web.js.map +1 -1
- package/lib/module/MarkdownTextInput.web.js +2 -2
- package/lib/module/MarkdownTextInput.web.js.map +1 -1
- package/lib/parser/react-native-live-markdown-parser.js +10 -8
- package/package.json +1 -1
- package/parser/react-native-live-markdown-parser.js +10 -8
- package/src/MarkdownTextInput.web.tsx +2 -2
|
@@ -117,10 +117,10 @@ function getElementHeight(node: HTMLDivElement, styles: CSSProperties, numberOfL
|
|
|
117
117
|
node.parentElement.appendChild(tempElement);
|
|
118
118
|
const height = tempElement.clientHeight;
|
|
119
119
|
node.parentElement.removeChild(tempElement);
|
|
120
|
-
return `${height}px
|
|
120
|
+
return height ? `${height}px` : 'auto';
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
return `${styles.height}px`
|
|
123
|
+
return styles.height ? `${styles.height}px` : 'auto';
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
|