Skip to content

Commit 4ef2169

Browse files
committed
docs(textarea): add known issue about interpolation in placeholder in IE
Closes angular#5025 Closes angular#14965
1 parent 31f20b6 commit 4ef2169

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
@@ -1789,6 +1789,20 @@ function checkboxInputType(scope, element, attr, ctrl, $sniffer, $browser, $filt
17891789
* @param {string=} ngChange Angular expression to be executed when input changes due to user
17901790
* interaction with the input element.
17911791
* @param {boolean=} [ngTrim=true] If set to false Angular will not automatically trim the input.
1792+
*
1793+
* @knownIssue
1794+
*
1795+
* When specifying the `placeholder` attribute of `<textarea>`, Internet Explorer will temporarily
1796+
* insert the placeholder value as the textarea's content. If the placeholder value contains
1797+
* interpolation (`{{ ... }}`), an error will be logged in the console when Angular tries to update
1798+
* the value of the by-then-removed text node. This doesn't affect the functionality of the
1799+
* textarea, but can be undesirable.
1800+
*
1801+
* You can work around this Internet Explorer issue by using `ng-attr-placeholder` instead of
1802+
* `placeholder` on textareas, whenever you need interpolation in the placeholder value. You can
1803+
* find more details on `ngAttr` in the
1804+
* [Interpolation](guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes) section of the
1805+
* Developer Guide.
17921806
*/
17931807

17941808

0 commit comments

Comments
 (0)