Skip to content

Commit

Permalink
fix passing styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Feb 5, 2024
1 parent f50c53c commit 58e1899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarkdownTextInput.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const MarkdownTextInput = React.forwardRef<TextInput, MarkdownTextInputProps>(
// 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(
Expand Down

0 comments on commit 58e1899

Please sign in to comment.