e03c002efd
When typing in Japanese, the Enter key is used to confirm kanji conversion during IME composition. Previously, pressing Enter would immediately save the tag, which prevented users from completing the conversion. Changes: - Add isComposing check to navigable_list_controller.js Enter handler - Add IME composition tracking to form_controller.js - Add compositionstart/compositionend event handlers to tag, step, and reaction input fields - Add preventComposingSubmit action to prevent form submission during composition This fix supports all IME input methods (Japanese, Chinese, Korean, etc.) using standard browser composition events.
13 lines
876 B
Plaintext
13 lines
876 B
Plaintext
<ol class="steps txt-small margin-block-start-auto">
|
|
<%= render partial: "cards/steps/step", collection: card.steps, as: :step %>
|
|
|
|
<% unless card.closed? %>
|
|
<li id="<%= dom_id(card, :new_step) %>" class="step">
|
|
<input type="checkbox" class="step__checkbox" disabled>
|
|
<%= form_with model: [card, Step.new], url: card_steps_path(card), class: "min-width", data: { controller: "form", action: "submit->form#preventEmptySubmit submit->form#preventComposingSubmit turbo:submit-end->form#reset" } do |form| %>
|
|
<%= form.text_field :content, class: "input step__content hide-focus-ring", placeholder: "Add a step…", autocomplete: "off", data: { form_target: "input", "1p-ignore": "true", action: "compositionstart->form#compositionStart compositionend->form#compositionEnd" }, aria: { label: "Add a step" } %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ol>
|