Skip to content

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

Open
@ghost

Description

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions