Skip to content

Commit

Permalink
Merge pull request #869 from naymspace/feature/add-textarea-rows-read…
Browse files Browse the repository at this point in the history
…only

Assign missing rows in readonly textarea field
  • Loading branch information
Flo0807 authored Feb 15, 2025
2 parents fccb475 + e90fe74 commit 2e3a15c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/backpex/fields/textarea.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand All @@ -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)}
Expand Down

0 comments on commit 2e3a15c

Please sign in to comment.