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

In safari browser onClick not clickable #14

Open
deepak-shinde opened this issue Mar 18, 2017 · 4 comments
Open

In safari browser onClick not clickable #14

deepak-shinde opened this issue Mar 18, 2017 · 4 comments

Comments

@deepak-shinde
Copy link

reactStringReplace(title, /#(\w+)/g, (match, i) => (
<a key={match + i} data-hash={match} onClick={this.onclick} >#{match}
))

@iansinnott
Copy link
Owner

Can you elaborate on this? I'm not sure what bug you're seeing based on the description

@deepak-shinde
Copy link
Author

Inside reactStringReplace I used anchor tag( <a key={match + i} data-hash={match} onClick={this.onclick} >)but on safari onClick event not triggering. Working on other browser.

@iansinnott
Copy link
Owner

Can you post the code? I don't see any anchor tags in the example in your first comment.

@nahumzs
Copy link

nahumzs commented Oct 10, 2020

This is nothing to do with this library, in safari any link lacking of href its not clickable, if your intention is to visit an internal or external page you don't need the onClick, if you want to use the link as a button you should use a button instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants