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

Comment form should not be cleared on upvote #807

Closed
espoem opened this issue Oct 16, 2017 · 1 comment
Closed

Comment form should not be cleared on upvote #807

espoem opened this issue Oct 16, 2017 · 1 comment
Labels

Comments

@espoem
Copy link
Contributor

espoem commented Oct 16, 2017

comment-vote

Expected behavior

The content in the comment form should stay untouched after upvoting the post.

Actual behavior

Comment form is cleared after upvoting the post.

How to reproduce

  1. Start writing a comment for a post. Don't submit it yet.
  2. Upvote the post.
  3. The comment form is cleared.
  • Browser: Chrome 61.0.3163.100
  • Operating system: Windows 10
SimpliciTea added a commit to SimpliciTea/busy that referenced this issue Oct 22, 2017
Proposed fix --
  -- move this.setState({ inputValue: '' }) from
     componentWillReceiveProps to onSubmit method

I believe that this creates the intended behavior
@karthik-awebon
Copy link
Contributor

I started looking at this issue. Thanks

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

4 participants