Default to 8 rows in directions text areas

Better: resize based on number of rows it takes
This commit is contained in:
Nicholas Kariniemi 2014-10-26 09:30:11 +02:00
parent 0e2f13d63d
commit 9e662c49b2
2 changed files with 2 additions and 2 deletions

View file

@ -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 %))}]

View file

@ -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 %))}]