Hey guys, I ran into this problem today while using Google Chrome v33.0.1750.117. I cannot reproduce on Firefox v27 or IE 11.
I may have found a temporary solution: http://jsfiddle.net/d4jaD/1/ I created a directive that binds to the select element's "blur" event and triggers a "change" event. -Rusty On Thursday, January 16, 2014 11:35:19 AM UTC-6, Andrew Kanieski wrote: > > Hey Jacob.. I too experienced this issue running Angular 1.2.9 > > http://jsfiddle.net/s7CEz/2/ > > I added autofocus onto the select... but if you use up/down to select the > first <select> then tab to the next select and use up/down the first select > resets.. (This was using Chrome). > > -- > > On Sunday, August 18, 2013 8:27:02 PM UTC-4, Jacob Mumm wrote: >> >> Bumping this back up. I'm still having a problem with the select boxes. >> Here's a fiddle: http://jsfiddle.net/grendian/s7CEz/ >> >> If you tab to the first box and use the keyboard down arrow to select >> something, then tab to the second box and hit down again, it resets. This >> is happening to me in Chrome. Is anyone else seeing this? Does anyone have >> any idea what the problem is or if anyone has a handle on a solution? >> >> Thanks, all. >> >> On Friday, July 19, 2013 10:51:22 PM UTC-4, [email protected] wrote: >>> >>> I'm having issues with select boxes as well. >>> >>> >>> http://stackoverflow.com/questions/17757888/resetting-a-select-box-in-angular-js-with-a-only-one-option?noredirect=1#comment25895923_17757888 >>> >>> On Wednesday, June 12, 2013 2:51:36 PM UTC-5, Jacob Mumm wrote: >>>> >>>> I just wanted to acknowledge that I'm having a similar issue with >>>> Select items. I've got a pair of select boxes that are not related or >>>> linked in any way. >>>> >>>> When tabbing to the first one and using the down arrow to pick, then >>>> tabbing to the second item, the first one will reset -- but only the very >>>> first load. This happens in Chrome on Linux, but not Chrome on OSX. >>>> >>>> In FireFox, the behavior is slightly different. Following the same >>>> steps of tabbing into the two boxes and using the down arrow to pick, the >>>> second box resets to blank after a very slight delay. >>>> >>>> I'd say there's something funky going on with select boxes, so I hope >>>> someone here has some thoughts. >>>> >>>> >>>> On Wednesday, June 12, 2013 7:59:46 AM UTC-4, Rakshit Majithiya wrote: >>>>> >>>>> It works perfectly in *Google Chrome*. >>>>> In chrome, the value of select changes when you do Up/Down with >>>>> keyboard. So it works same way you want. >>>>> >>>>> But, in *Firefox, *Value of Select changes after you leave the select >>>>> (by pressing Tab from keyboard or clicking somewhere else), >>>>> Do this in firefox : >>>>> - go to input field >>>>> - press tab >>>>> - press down and press tab >>>>> === black will be selected and hover won't change anything.. >>>>> >>>>> now, >>>>> - go to input >>>>> - press tab >>>>> - press down >>>>> - hover on "?" (BANGG !! select seems to reset the selection) >>>>> - now again go to input and press tab, >>>>> - press 'down' >>>>> == you will see "White" (option 3) instead of "black" (option 2) >>>>> Seems that it doesn't entirely reset the option, but it preserves >>>>> state of option and shows different value.which happens only in firefox. >>>>> >>>>> >>>>> -Rax >>>>> >>>>> >>>>> >>>>> On 13-06-12 04:46 AM, Sebastien Cesbron wrote: >>>>> >>>>> Hi >>>>> >>>>> I have a selection problem in my app and I want to have some opinions >>>>> on if this is a bug or not before submitting a bug on github. >>>>> >>>>> Here is the plunkr of the bug : >>>>> http://plnkr.co/edit/7eUbmxXw9q2UaTgMNI5E?p=preview >>>>> >>>>> I hope my explanations are clear. When you select a value with the >>>>> keyboard and then do something with your mouse that show a div, the value >>>>> selected is lost. >>>>> >>>>> Is this normal as keyboard selection do not directly bind to the model >>>>> or is this a bug ? >>>>> >>>>> Regards >>>>> Seb >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "AngularJS" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/angular?hl=en-US. >>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>> >>>>> >>>>> >>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
