-
Notifications
You must be signed in to change notification settings - Fork 55
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
Comments
Can you elaborate on this? I'm not sure what bug you're seeing based on the description |
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. |
Can you post the code? I don't see any anchor tags in the example in your first comment. |
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. |
reactStringReplace(title, /#(\w+)/g, (match, i) => (
<a key={match + i} data-hash={match} onClick={this.onclick} >#{match}
))
The text was updated successfully, but these errors were encountered: