nested_form icon indicating copy to clipboard operation
nested_form copied to clipboard

Blueprint adds default value when using textarea input

Open davoclavo opened this issue 11 years ago • 1 comments

When using textarea the blueprint sets a default value of " " (8 spaces) to it. This happens because the fields_for renders the form with "\n" characters, when they are added as attributes to the html entity (as data-blueprint), it gets changed to spaces (at least in Chrome)

I made this proof of concept on how to fix it, but I don't know if there is a more elegant way of doing it: https://github.com/davoclavo/nested_form/commit/ad828ed3712c6c1dd28e7c8f6566786d90b80410

davoclavo avatar Apr 14 '14 23:04 davoclavo

:+1:

prinum avatar Jun 29 '14 15:06 prinum