AngularJS on IE10+ ,textarea with placeholder cause “Invalid argument.”

后端 未结 3 1019
执笔经年
执笔经年 2021-01-07 19:22

I\'m getting \"Invalid argument\" when using angularJS ,TextArea with placeholder, on IE10+.

This will ONLY happen when the textarea node is closed with

3条回答
  •  梦毁少年i
    2021-01-07 20:20

    This seems to be an issue with the way you're binding to the element's placeholder - strange, I know.

    I was able to get everything working correctly in IE using the ng-attr-placeholder directive instead of binding directly to the attribute in the DOM.

    For example, instead of:

    
    

    Try this:

    
    

    Related: AngularJS v1.2.5 script error with textarea and placeholder attribute using IE11

提交回复
热议问题