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

Commit f9e7dab

Browse files
committed
docs(textarea): add known issue about interpolation in placeholder in IE
Closes #5025 Closes #14965
1 parent 296da4b commit f9e7dab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/ng/directive/input.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,20 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
17781778
* @param {string=} ngChange Angular expression to be executed when input changes due to user
17791779
* interaction with the input element.
17801780
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
1781+
*
1782+
* @knownIssue
1783+
*
1784+
* When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
1785+
* insert the placeholder value as the textarea's content. If the placeholder value contains
1786+
* interpolation (`{{ ... }}`), an error will be logged in the console when Angular tries to update
1787+
* the value of the by-then-removed text node. This doesn't affect the functionality of the
1788+
* textarea, but can be undesirable.
1789+
*
1790+
* You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
1791+
* `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
1792+
* find more details on `ngAttr` in the
1793+
* [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
1794+
* Developer Guide.
17811795
*/
17821796

17831797

0 commit comments

Comments
 (0)