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

Docs/Tutorial: Introducing a submit button in the comment form #19

Merged
merged 1 commit into from
May 30, 2013

Conversation

seiffert
Copy link
Contributor

This PR just adds a submit button to the tutorial's comment form.
A form has to either contain a submit button or an action attribute to be 'submittable' by pressing enter. IMO, the only other way to achieve this is to manually listen for keyboard events, which was implied by the tutorial but not included in the example source code.

@zpao
Copy link
Member

zpao commented May 30, 2013

@seiffert Thanks! And thanks for already signing the CLA :)

@petehunt I'm going to let you take this since the tutorial is mostly your baby and you would know best if you forgot some code or if this is the best route.

@petehunt
Copy link
Contributor

@seiffert thanks for this! You're totally right. I added it in the committed example but didn't update the docs: https://github.com/petehunt/react-tutorial/blob/master/scripts/example.js

petehunt added a commit that referenced this pull request May 30, 2013
Docs/Tutorial: Introducing a submit button in the comment form
@petehunt petehunt merged commit c5612b3 into facebook:master May 30, 2013
@seiffert seiffert deleted the submit_button branch May 30, 2013 18:22
zpao pushed a commit to zpao/react that referenced this pull request Nov 12, 2013
fix title case for tips everywhere
georgesisco added a commit to georgesisco/react that referenced this pull request Apr 9, 2014
… steps

The following steps also have an ajax function, but the 'error:' param
is gone after facebook#13:
facebook#14
facebook#17
facebook#19
facebook#20
This may be superfluous, but it helped me find an error with something I
was doing - Namely, in my .json file, I had single line javascript
comments ("//") that I copied from the tutorial. I couldn't find the
issue on later steps, but was able to see my issue when the error
handler complained about an unexpected "/" in my file in step facebook#13.
zpao pushed a commit that referenced this pull request May 8, 2014
The following steps also have an ajax function, but the 'error:' param
is gone after #13:
#14
#17
#19
#20
This may be superfluous, but it helped me find an error with something I
was doing - Namely, in my .json file, I had single line javascript
comments ("//") that I copied from the tutorial. I couldn't find the
issue on later steps, but was able to see my issue when the error
handler complained about an unexpected "/" in my file in step #13.
chenglou added a commit to chenglou/react that referenced this pull request Jun 26, 2014
chenglou added a commit that referenced this pull request Jun 26, 2014
(cherry picked from commit dbf41a5)
chenglou added a commit that referenced this pull request Jun 26, 2014
chenglou added a commit that referenced this pull request Jun 27, 2014
chenglou added a commit that referenced this pull request Jun 27, 2014
@chenglou chenglou mentioned this pull request Aug 2, 2014
bvaughn pushed a commit to bvaughn/react that referenced this pull request Aug 13, 2019
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.

3 participants