Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML.onLinkPress does not get fired if link contains html elements #5

Closed
janrop opened this issue Aug 20, 2019 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@janrop
Copy link

janrop commented Aug 20, 2019

Hi there,

I noticed a bug which causes the onLinkPress method to not be fired.

If there is an anchor element inside a table which itself contains more markup (i.E. an img or an i-tag), the onLinkPress method does not fire.

"react-native-render-html": "4.1.2",
"react-native-render-html-table-bridge": "0.4.0-rc.1",
"react-native-webview": "5.12.1",

HTML to reproduce:

<table style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 50%;">Test <a href="http://text:189">[info]</a></td>
<td style="width: 50%;">Test <a href="http://text:189"><sup>[info]</sup></a></td>
</tr>
</tbody>
</table>
@jsamr
Copy link
Collaborator

jsamr commented Sep 26, 2019

@janrop I could reproduce. Investigating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants