Skip to content

Commit

Permalink
Fix IE11 Value
Browse files Browse the repository at this point in the history
IE11 misreports the value of the input. The root problem is described at
the following URL:

emberjs/ember.js#14712

Resolves yapplabs#52
  • Loading branch information
jherdman committed May 22, 2018
1 parent de23126 commit 56a2f9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon/components/radio-button-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export default Component.extend({
'ariaDescribedby:aria-describedby'
],

didRender() {
// Required for IE11 to correctly report its value
this.$().val(this.get('value'));
},

checked: computed('groupValue', 'value', function() {
return isEqual(this.get('groupValue'), this.get('value'));
}).readOnly(),
Expand Down

0 comments on commit 56a2f9d

Please sign in to comment.