react-pdf
react-pdf copied to clipboard
Nesting underline textDecoration removes underline
Describe the bug
When you nest <Text> with textDecoration: 'underline' the nested <Text> loses the underline.
To Reproduce In the REPL just paste this in anywhere:
<Text style={{ textDecoration: 'underline' }}> H<Text style={{ textDecoration: 'underline' }}>ello</Text> </Text>
Interestingly if I set the child to 'none' the inherited underline reappears.
You can make use of react-pdf REPL to share the snippet
Expected behavior "ello" should be underlined as both it, and its parent are underlined. But instead the nesting seems to toggle off the underline.
Desktop (please complete the following information):
Any OS/version