[Firefox Bug] Data binding with HTML <select> component cause selected option rendering wrong
See original GitHub issueHey 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
HTML select, correct option selected in DOM, but wrong item ...
Any idea on why this is happening? The example uses Ember.js library, but anyway the display is supposed to reflect the DOM state...
Read more >FireFox <select> Issue - Selected in option does not work.
Example bugs: datepicker remains visible after tabbing out of date input field. the filename field of <input type=file> renders incorrectly in vertical writing ......
Read more >126379 - Select (size=1) onChange not called using down ...
This bug has been marked "wontfix" because the w3c recommendation says the onChange event should only happen when the control loses focus. However,...
Read more >selectedIndex incorrect when <option> replaced dynamically ...
Actual results: First, I clicked "Dynamically Load Form #1" and then selected "Item One". The Javascript popup displayed exactly the same text. Next,...
Read more >Handling common accessibility problems - MDN Web Docs
Certain HTML features can be selected using only the keyboard — this ... for example the <select> element can have its options displayed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

forgive me to off the topic, but this issue is really really interesting:
😹
@rwjblue
<select>example, React<select>example. Are they superior?