angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

Setting input type=“file” using expression not working in Chrome or Safari

Open sdsanders opened this issue 12 years ago • 1 comments

I am working on a form builder application in Angular and have run into an odd bug in Chrome. I am dynamically setting a form input type based on a variable. This seems to work for all input types except for "file", which will always change to "text" in Chrome or Safari. A simple example is below:

<div ng-app="app">
  <input type="{{'file'}}" /><br />
  <input type="{{'color'}}" /><br />
  <input type="{{'button'}}" value="button" />
</div>

jsfiddle

sdsanders avatar May 29 '14 20:05 sdsanders

Hi @sdsanders, This is not supported by angular. Duplicate #1375

caguillen214 avatar May 30 '14 23:05 caguillen214