diff --git a/app/views/cards/container/_title.html.erb b/app/views/cards/container/_title.html.erb index a7176ecb2..15f1ed856 100644 --- a/app/views/cards/container/_title.html.erb +++ b/app/views/cards/container/_title.html.erb @@ -23,7 +23,7 @@ <%= form.label :title, class: "flex flex-column align-center autoresize__wrapper", data: { autoresize_target: "wrapper", autoresize_clone_value: "" } do %> <%= form.text_area :title, placeholder: "Name it…", class: "card-field__title autoresize__textarea input input--textarea full-width borderless txt-align-start hide-focus-ring hide-scrollbar", - autofocus: card.title.blank?, rows: 1, dir: "auto", + autofocus: card.title.blank?, rows: 1, dir: "auto", maxlength: 255, data: { autoresize_target: "textarea", action: "input->autoresize#resize auto-save#change blur->auto-save#submit keydown.enter->auto-save#submit:prevent" } %> <% end %> diff --git a/app/views/cards/edit.html.erb b/app/views/cards/edit.html.erb index 0f33ab9c3..768fe133c 100644 --- a/app/views/cards/edit.html.erb +++ b/app/views/cards/edit.html.erb @@ -4,7 +4,7 @@