Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible radio input issue glimmer 2 #14712

Closed
jcbvm opened this issue Dec 12, 2016 · 15 comments
Closed

Possible radio input issue glimmer 2 #14712

jcbvm opened this issue Dec 12, 2016 · 15 comments

Comments

@jcbvm
Copy link

jcbvm commented Dec 12, 2016

I just want to share that I found a little problem with glimmer 2.

In IE 11 I see some strange things happening to radio inputs. If the value is a computed property, the value gets set to "on" by IE when something on the page changes. A deeper search to this ends up with IE setting the value to "on" when input.type gets set.

So my guess is that a rerender causing the input.type to be set to 'radio', causing the value to change. Normally you can fix this by setting the value right after the type has been set. I'm not sure yet if this is the case in glimmer 2, does anyone knows more about this?

I tested this on IE, but from searching I see FF may also be causing this behaviour.

UPDATE

Here a jsbin showing the 'bug', if you run this in IE 11, and you click on the radio button, you will see the value changing in "on":

http://emberjs.jsbin.com/basoxirumo/1/edit?html,js,output

@jcbvm jcbvm changed the title Possible issue glimmer 2 Possible radio input issue glimmer 2 Dec 12, 2016
@adam-knights
Copy link

Can confirm that i also see this on ie 11 (windows 10).

@dougestey
Copy link

Can also confirm, Windows 10/IE11.

@runspired
Copy link
Contributor

@chadhietala did glimmer ever do anything to address this order-of-operations bug for IE11?

@Serabe
Copy link
Member

Serabe commented May 1, 2018

@jherdman
Copy link
Contributor

We have a reproduction app now: https://github.com/PrecisionNutrition/input-helper-demo/tree/ie11

@jherdman
Copy link
Contributor

jherdman commented May 17, 2018

And an even simpler reproduction https://jsbin.com/foxoqiwola/1/edit. It looks like having type set last is the culprit.

jherdman added a commit to jherdman/ember-radio-button that referenced this issue May 22, 2018
IE11 misreports the value of the input. The root problem is described at
the following URL:

emberjs/ember.js#14712

Resolves yapplabs#52
jherdman added a commit to jherdman/ember-radio-button that referenced this issue May 22, 2018
IE11 misreports the value of the input. The root problem is described at
the following URL:

emberjs/ember.js#14712

Resolves yapplabs#52
nvdk added a commit to lblod/ember-vo-webuniversum that referenced this issue Sep 14, 2018
in IE11 a radio button gets the value 'on', see emberjs/ember.js#14712
@pixelhandler
Copy link
Contributor

@adam-knights @dougestey @jcbvm @jherdman @lepolt @runspired is this still an issue, perhaps we should close or create a new reproduction of this, what do you think?

@jherdman
Copy link
Contributor

Very much still an issue. Does the JSBin example not count?

@pixelhandler
Copy link
Contributor

@jherdman well the original jsbin is using old version of Ember and ember-twiddle doesn't run in IE. I see the https://github.com/PrecisionNutrition/input-helper-demo/blob/ie11/package.json example perhaps it can be update to a current release of Ember?

@jherdman
Copy link
Contributor

@pixelhandler done, and done!

@tomdale
Copy link
Member

tomdale commented Dec 20, 2018

@Serabe @jherdman So am I understanding correctly that this issue with radio buttons is exacerbated by the fix for input[type="range"], since we always move setting the type attribute to the end?

@jherdman
Copy link
Contributor

@tomdale yeah, probably. The lesson for me is that various implementations do NOT treat attribute insertion as irrelevant. The good news is that (AFAIK) the range and radio elements are the only ones that we seem to have run into.... that I know of :)

@locks locks added the Glimmer2 label May 30, 2019
@locks locks added the Input label Apr 19, 2020
@jherdman
Copy link
Contributor

IMHO we can close this.

@sandstrom
Copy link
Contributor

I'm doing some issue gardening 🌱🌿 🌷 and came upon this issue. Since it's quite old I just wanted to ask if this is still relevant? If it isn't, maybe we can close this issue?

By closing some old issues we reduce the list of open issues to a more manageable set.

@jherdman
Copy link
Contributor

IMHO yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants