You also have to call update() on the paper-autogrow-textarea component.
Here is an example:
<paper-autogrow-textarea id="chatAutoGrow">
<textarea id="chatInput"></textarea>
</paper-autogrow-textarea>
this.$.chatInput.value = '';
this.$.chatAutoGrow.update('');
Am Mittwoch, 26. November 2014 16:18:16 UTC+1 schrieb
[email protected]:
>
> I can't clear textarea value inside paper-input-decorator. Here is the
> code:
>
> -----------------------
> <paper-input-decorator
> id="title_decorator"
> label="Title"
> error="Value must be set!"
> isInvalid="{{!$.title_input.validity.valid}}"
> floatingLabel>
> <paper-autogrow-textarea>
> <textarea id="title_input" is="core-input" value="{{title}}"
> required></textarea>
> </paper-autogrow-textarea>
> </paper-input-decorator>
> -----------------------
>
> No one of the following methods doesn't work:
>
> 1)
>
> this.value = "";
>
> 2)
>
> this.value = "";
> this.$.title_input.commit();
>
> 3)
>
> this.value = "";
> this.$.title_input.value = "';
> this.$.title_input.committedValue = "';
>
> Could anyone help?
>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/94c5ed8b-a718-4377-ae5c-8167efe3cded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.