Skip to content

In safari browser onClick not clickable #14

Open

Description

@deepak-shinde

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

Activity

  1. iansinnott commented on Mar 18, 2017

    @iansinnott
    Owner

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

  2. deepak-shinde commented on Mar 20, 2017

    @deepak-shinde
    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.

  3. iansinnott commented on Mar 20, 2017

    @iansinnott
    Owner

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

  4. nahumzs commented on Oct 10, 2020

    @nahumzs

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions