From 56a2f9de3654f21e0c270f4a46640391a285b038 Mon Sep 17 00:00:00 2001 From: James Herdman Date: Tue, 22 May 2018 11:32:10 -0400 Subject: [PATCH] Fix IE11 Value IE11 misreports the value of the input. The root problem is described at the following URL: https://github.com/emberjs/ember.js/issues/14712 Resolves #52 --- addon/components/radio-button-input.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addon/components/radio-button-input.js b/addon/components/radio-button-input.js index 097b6a8..615f33a 100644 --- a/addon/components/radio-button-input.js +++ b/addon/components/radio-button-input.js @@ -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(),