From 5d662f1ec9a9c033a93a0f3dc8039fbd8c7675dc Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sat, 31 May 2025 12:30:04 +0200 Subject: [PATCH] Revert "Patch for cards missing description" This reverts commit 257c0902f47fba36bc1a0978adbffeed23ce301f. --- app/javascript/controllers/auto_save_controller.js | 4 ---- app/views/cards/container/_title.html.erb | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/javascript/controllers/auto_save_controller.js b/app/javascript/controllers/auto_save_controller.js index a99c08192..0323ab9ad 100644 --- a/app/javascript/controllers/auto_save_controller.js +++ b/app/javascript/controllers/auto_save_controller.js @@ -26,10 +26,6 @@ export default class extends Controller { } } - reset() { - this.#timer = null - } - // Private #scheduleSave() { diff --git a/app/views/cards/container/_title.html.erb b/app/views/cards/container/_title.html.erb index 673814b74..1767fd854 100644 --- a/app/views/cards/container/_title.html.erb +++ b/app/views/cards/container/_title.html.erb @@ -10,8 +10,7 @@ <% end %> <% else %> - <%= form_with model: card, url: collection_card_path(card.collection, card), id: "card_form", class: "card__content", data: { - controller: "autoresize auto-save", action: "turbo:morph@window->auto-save#reset" } do |form| %> + <%= form_with model: card, url: collection_card_path(card.collection, card), id: "card_form", class: "card__content", data: { controller: "autoresize auto-save" } do |form| %>

<%= form.text_area :title, placeholder: "Name it…", class: "input input--textarea full-width borderless txt-align-start autoresize__textarea",