Filed as: http://code.google.com/p/chromium/issues/detail?id=4251
On Sun, Nov 9, 2008 at 5:57 PM, e. roman <[EMAIL PROTECTED]> wrote:
> Thanks for the report, I will file a report to track this.
>
> The problem is we (and Safari) fire onchange event anytime the
> selection changes after being focused. So when you change the
> selectedIndex from within the onchange handler, it will have focus and
> hence fire again.
>
> To workaround the problem, you can tell the dropdown to blur itself
> before changing the index. This will prevent it from firing the
> onchange again.
>
> ** Original code **
>
> 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;"
>
> ** Workaround code **
>
> onchange="if (this.selectedIndex == 0 || confirm('Turn safe spy off?
> If you are younger than 18, click Cancel.') )
> document.safeSpyForm.submit(); else { this.blur(); this.selectedIndex
> = 0;} "
>
> On Sun, Nov 9, 2008 at 11:21 AM, Amir Michail <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> You can see this bug here:
>>
>> http://chatbotgame.com/?cmd=chat_s
>>
>> Try switching to "I'm 18+" but then click cancel. Next, scroll the
>> page.
>>
>> Amir
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-discuss" 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-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---