Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(textarea): add known issue about interpolation in placeholder in IE #14965

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,20 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
* @param {string=} ngChange Angular expression to be executed when input changes due to user
* interaction with the input element.
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
*
* @knownIssue
*
* When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
* insert the placeholder value as the textarea's content. If the placeholder value contains
* interpolation (`{{ ... }}`), an error will be logged in the console when Angular tries to update
* the value of the by-then-removed text node. This doesn't affect the functionality of the
* textarea, but can be undesirable.
*
* You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
* `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
* find more details on `ngAttr` in the
* [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
* Developer Guide.
*/


Expand Down