handlerbars template with auto height textarea

160 views Asked by At

I'm working on a C# project with handlebars for PDF generating, but I'm facing 1 issue, which is textarea wont show whole content due to it wont auto expand,

here my template code for the textarea and the sample input

description="line 1\nline 2\nline 3\n line 4\nline 5\n"

<textarea name="Description" class="form-control" disabled>
    {{description}}
</textarea>

I'm trying to use the css resize: vertical it works fine when browsing the template but after the pdf generated, it seems wont auto expand.

Is there anyway to fix this or other alternative route to do this ?

0

There are 0 answers