-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Sending an answer inserts answer text into other textareas on the page #3836
Comments
Published on GCI dashboard |
I can't find this task on the gci dashboard.. is it already solved? |
I solved it in PR #4049, please, check it :) |
Hey @jywarren @handlerug while reviewing PR created by @handlerug , i was trying to replicate the error and found that this error is not due to unique id problem or so, but somewhat related to comment template. Like, when I created a test question on the website and added tag as Information about comment templates - https://publiclab.org/comment-templates Test question - https://publiclab.org/questions/gauravano/11-26-2018/test-question Thanks! |
It's problem with response from the server. When user submits comment, server returns filled answer template with new comment form prefilled with answer text. So I added special flag to disable auto-filling and now it's working fine. I will do some extra checks today and will try to solve it, thanks! 👍 |
Awesome!!!
…On Mon, Nov 26, 2018, 8:51 PM handlerug ***@***.*** wrote:
It's problem with response from the server. When user submits comment,
server returns filled answer template with new comment form prefilled with
answer text. So I added special flag to disable auto-filling and now it's
working fine.
I will do some extra checks today and will try to solve it, thanks! 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3836 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ7XObKbtCzi1cT0tCZTgTSODetS2ks5uzJqUgaJpZM4YAtsG>
.
|
It's problem inside new comment view, so I fixed it already. Can you check it again @jywarren @gauravano? |
@jywarren don't you think the issue you mentioned was due to the tag |
Hmm, it's worth watching this carefully. I don't think the original issue was related to the comment template feature. So i think this is OK. But let's keep an eye out. I also haven't seen the @handlerug i'm going to be publishing new code in about an hour. Would you be able to test and ensure both features are working? Thanks! |
I think comment templates will be broken because I ever didn't know about this feature and my fix removes any text from comment form inside answer view. I will check it in two hours, can I add more commits to my pull request? Thanks! |
Ah - well you can open a new PR with additional changes! No worries --
thanks for following up!
… |
I entered an answer and posted it on this page: https://publiclab.org/questions/warren/10-29-2018/help-us-refine-the-search-interface-at-publiclab-org
My answer was posted, but strangely, its comment box also contained my original answer text, and the text also remained in the answer posting textarea:
I would guess there's something going wrong with the
id
s of these textareas that is causing the content to be inserted incorrectly:plots2/app/views/questions/_answers.html.erb
Lines 9 to 14 in 46235a7
Notice how the answer posting form re-uses the comment form. Perhaps there is a collision of unique IDs between these.
The text was updated successfully, but these errors were encountered: