Default to 8 rows in directions text areas
Better: resize based on number of rows it takes
This commit is contained in:
parent
0e2f13d63d
commit
9e662c49b2
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@
|
|||
:on-change #(om/set-state! owner :grubs (dom/event-val %))}]
|
||||
[:textarea.form-control.recipe-grubs-input
|
||||
{:ref :textarea
|
||||
:rows (inc (num-newlines directions))
|
||||
:rows 8
|
||||
:value directions
|
||||
:placeholder "Directions"
|
||||
:on-change #(om/set-state! owner :directions (dom/event-val %))}]
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
:on-change #(om/set-state! owner :new-recipe-grubs (dom/event-val %))}]
|
||||
[:textarea.form-control.recipe-grubs-input
|
||||
{:ref :textarea
|
||||
:rows (inc (recipe/num-newlines new-recipe-directions))
|
||||
:rows 8
|
||||
:value new-recipe-directions
|
||||
:placeholder "Directions"
|
||||
:on-change #(om/set-state! owner :new-recipe-directions (dom/event-val %))}]
|
||||
|
|
Loading…
Add table
Reference in a new issue