germsvel / phoenix_test

MIT License
144 stars 20 forks source link

Support default values on textareas #83

Closed soundmonster closed 1 month ago

soundmonster commented 2 months ago

This PR adds support for default / pre-filled values in <textarea> form elements. The default put_form_data helper function can't work here, as <input> elements have the value in an attribute but <textarea> holds it as a text child.

soundmonster commented 2 months ago

Thank you for flagging this, I was involved in the discussion about deprecating DeepMerge but missed the moment the PR was merged. Will rebase in the PM tomorrow CEST.

soundmonster commented 1 month ago

@germsvel Please have another look:

germsvel commented 1 month ago

Thanks so much @soundmonster! 🥳