From e90fe74ae908963e8ea171cadae18211c937b6f7 Mon Sep 17 00:00:00 2001 From: Florian Arens <60519307+Flo0807@users.noreply.github.com> Date: Fri, 14 Feb 2025 09:56:14 +0100 Subject: [PATCH] Assign missing rows in readonly textarea --- lib/backpex/fields/textarea.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/backpex/fields/textarea.ex b/lib/backpex/fields/textarea.ex index 84b5e879..422a8f91 100644 --- a/lib/backpex/fields/textarea.ex +++ b/lib/backpex/fields/textarea.ex @@ -59,7 +59,7 @@ defmodule Backpex.Fields.Textarea do type="textarea" field={@form[@name]} placeholder={@field_options[:placeholder]} - rows={@field_options[:rows] || 2} + rows={@field_options[:rows]} translate_error_fun={Backpex.Field.translate_error_fun(@field_options, assigns)} phx-debounce={Backpex.Field.debounce(@field_options, assigns)} phx-throttle={Backpex.Field.throttle(@field_options, assigns)} @@ -81,6 +81,7 @@ defmodule Backpex.Fields.Textarea do type="textarea" field={@form[@name]} placeholder={@field_options[:placeholder]} + rows={@field_options[:rows]} translate_error_fun={Backpex.Field.translate_error_fun(@field_options, assigns)} phx-debounce={Backpex.Field.debounce(@field_options, assigns)} phx-throttle={Backpex.Field.throttle(@field_options, assigns)}