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

Update app.js #2879

Closed
wants to merge 2 commits into from
Closed

Update app.js #2879

wants to merge 2 commits into from

Conversation

asvsfs
Copy link

@asvsfs asvsfs commented Jan 19, 2015

Bootstrap button's caption didn't show up and onClick event didn't fire , so i passed the event to tag .

Bootstrap button's caption didn't show up and onClick event didn't fire , so i passed the event to <a> tag .
@@ -3,10 +3,10 @@
var BootstrapButton = React.createClass({
render: function() {
return (
<a {...this.props}
<a onClick={this.props.onclick}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to onClick?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No , onClick doesn't work!

@chenglou
Copy link
Contributor

Master seems to work fine (well, with #2884 anyway). I think the bug might be on your side? It's definitely not onclick/onClick's problem as that's only a prop name. If you pass onClickBlaCustomName to BootstrapButton and it does onClick={this.props.onClickBlaCustomName}, you're still fine.

@chenglou
Copy link
Contributor

=)

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

Successfully merging this pull request may close these issues.

2 participants