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

Form is not sending text if Quill is not clicked out of before submit #3

Open
ghost opened this issue Oct 3, 2019 · 0 comments
Open

Comments

@ghost
Copy link

ghost commented Oct 3, 2019

My ruby code consists of the following:
<%= form_for :reply, url: comment_path(post_id: @post.id) do |f| %> <%= f.hidden_field :reply_to, value: comment.id.to_s %> <%= f.text_field :body, autofocus: true, class: 'quill_container' %> <%= f.submit "Post" %> <% end %>

First of all, the autofocus doesn't work, although that's a minor issue.
The bigger issue is that the text is not sent sometimes. Specifically, if I type something in and press "Post" without clicking out of the text box first, it doesn't send it. If I type something long, it will send the first part of what I type. However, if I click out of the text box and then click Post, it works every time.
Is this a known issue, or am I doing something wrong?

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

No branches or pull requests

0 participants