Skip to content

Commit

Permalink
Reusing element causes problems in Safari
Browse files Browse the repository at this point in the history
You cannot create an element and change it's type from * to "file".  

See: emberjs#14727 for more details
  • Loading branch information
anon4562 authored Dec 22, 2016
1 parent 746fb91 commit 6eef7a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ember-glimmer/lib/components/text_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ function canSetTypeOfInput(type) {
return type;
}

if (!inputTypeTestElement) {
inputTypeTestElement = document.createElement('input');
}
let inputTypeTestElement = document.createElement('input');

try {
inputTypeTestElement.type = type;
Expand Down

0 comments on commit 6eef7a3

Please sign in to comment.