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

The unit click event would replace default click event #19

Closed
jessy1092 opened this issue Apr 2, 2015 · 0 comments
Closed

The unit click event would replace default click event #19

jessy1092 opened this issue Apr 2, 2015 · 0 comments
Assignees
Labels

Comments

@jessy1092
Copy link
Owner

So that can't get e which is react event parameter.

ex.

render: function() {
  return(
    <Element onClick={this._onClick}></Element>
  );
},
_onClick: function(e) {
  console.log(e);
}

Error message:
TypeError: e is undefined

Need to remove onClick on unit.js or add e
https://github.com/jessy1092/react-semantify/blob/develop/src/commons/unit.js#L87-L92

@jessy1092 jessy1092 added the bug label Apr 2, 2015
@jessy1092 jessy1092 self-assigned this Apr 2, 2015
jessy1092 added a commit that referenced this issue Apr 3, 2015
- Remove Unit Component onClick function. Just transfer default props. issue #19
jessy1092 added a commit that referenced this issue Apr 3, 2015
- Remove Unit Component onClick function. Just transfer default props. issue #19
- Fix Rating initialization typo. close #18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant