Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Make TextareaElement's withContent() not append & withAttribute('value') set content #6

Open
bjuppa opened this issue Aug 9, 2016 · 1 comment

Comments

@bjuppa
Copy link
Owner

bjuppa commented Aug 9, 2016

Textareas have their "value" set in content, not in attribute. When adding content to a textarea it should not be appended, it should replace any current content.

This could be done by overriding withContent() and have it call withDefaultContent().

@bjuppa bjuppa changed the title Make TextareaElement's withContent() not append Make TextareaElement's withContent() not append & withAttribute('value') set content Aug 10, 2016
@bjuppa
Copy link
Owner Author

bjuppa commented Aug 10, 2016

Also, if calling withAttribute('value') on TextareaElement the developer's intention is probably to set content, not the value attribute (it is not allowed on textarea anyway).

This would help if calling setInputAttribute('value') on a control block including a textarea.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant