-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[Firefox Bug] Data binding with HTML <select> component cause selected option rendering wrong #15484
Comments
I can confirm the bug. It only happens with the even positions though. Trying to debug but Firefox Dev Tools are really crappy :$ |
I made it happened for the odd now. Will continue tomorrow. |
FireFox needs to use the selected property for appending child options. The attribute doesn't seem to work. via attribute |
Hey I just encountered this issue, it's the same as: https://stackoverflow.com/questions/4831848/firefox-ignores-option-selected-selected as far as I understand? Any fixes (or workarounds) for it yet? |
I just tested this again on |
Forked the original twiddle to use the |
Updated Twiddle: https://ember-twiddle.com/351fbdc7f3e2ec537ab20e006193c714 |
Still happening with 3.17. |
This does not seem like an Ember bug to me, it seems like an issue with FireFox (as mentioned by @krisselden in #15484 (comment)). In recent versions of Ember you can use ember-prop-modifier to force Ember to use the See this demo (note: I've had to recreate the |
Closing based on the last comment: 1) there is a pretty decent work around and 2) there really isn't anything Ember can do to fix this FireFox bug |
|
In case anyone is still running into this - here is the link to the firefox issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1300405 |
Hey guys,
I'm experiencing a wired data binding bug only happened in Firefox. I bind properties of
<option>
tag with an Ember computed property, but when the computed value is updated and the selected index of<option>
is an even number, the displayed value of dropdown would always be the first value of<option>
instead of the actual selected value.I also tried in vanilla JS and it works just fine. Can someone help me take a look?
Thanks in advance!
Reproduce(Please open in Firefox):
Ember twiddle:
https://ember-twiddle.com/b6e09c3df2be9b21f41ecf8e8d28a91a?openFiles=templates.application.hbs%2C
Vanilla JSbin
https://jsbin.com/bigahec/edit?html,js,console,output
The text was updated successfully, but these errors were encountered: