From 58e189923bbf1d0b95c4cdd3d090a97fc7a754e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ska=C5=82ka?= Date: Mon, 5 Feb 2024 17:29:24 +0100 Subject: [PATCH] fix passing styles --- src/MarkdownTextInput.web.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index 6c36c771..3cd51780 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -210,7 +210,7 @@ const MarkdownTextInput = React.forwardRef( // Placeholder text color logic const updateTextColor = useCallback((node: HTMLDivElement, text: string) => { // eslint-disable-next-line no-param-reassign -- we need to change the style of the node, so we need to modify it - node.style.color = String(placeholder && (text === '' || text === '\n') ? placeholderTextColor : (style as TextStyle).color || 'black'); + node.style.color = String(placeholder && (text === '' || text === '\n') ? placeholderTextColor : flattenedStyle.color || 'black'); }, []); const handleOnChangeText = useCallback(