Issue 4251: Changing dropdown's selectedIndex within onchange handler fires another onchange http://code.google.com/p/chromium/issues/detail?id=4251
New issue report by [EMAIL PROTECTED]: This was reported on chromium-discuss for the site: http://chatbotgame.com/?cmd=chat_s What happens on this site, is if you answer cancel in the confirmation dialog, and then blur the dropdown (say by scrolling the page), it will submit the form. <select name="filter" onchange="if (this.selectedIndex == 0 || confirm('Turn safe spy off? If you are younger than 18, click Cancel.') ) document.safeSpyForm.submit(); else this.selectedIndex = 0;"> <option value="on" selected="selected">I'm 13+</option> <option value="off" >I'm 18+</option> </select> The problem is in Chromium + Safari, if you change the selectedIndex from within the onchange handler (notably while it still has focus), then once you blur if the index has changed it fires another onchange event. Issue attributes: Status: Untriaged Owner: [EMAIL PROTECTED] Labels: Type-Bug Pri-2 OS-All Area-BrowserBackend Area-Compat -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/chromium-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
