[Webkit-unassigned] [Bug 76389] Form select option not de-selecting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 16 10:58:25 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76389





--- Comment #3 from buy12 at netcasters.com  2012-01-16 10:58:24 PST ---
(In reply to comment #1)
> I can confirm this, setting status to new.
> 
> When the option gets deselected, the select has no selection. Somewhere in the select code it doesn't know to set the selected index to -1. Instead, it defaults to 0. This can be confirmed by having the second option be set to be the default selection.
> 
> While this is definitely a bug, I also find this pattern strange. Why not just say select.selectedIndex = -1?

Better user experience.  Have an ordered list of names that I'm allowing users to search through.  Say you're looking for "Smith" and typing the letters in a text box, as you type each letter, the next name in the list is highlighted.  Then you mess up and type an "x" instead of "h", there would be no match, so if you did a select.selectedIndex = -1, it would move the focus back to the top of the list.  Not a big deal by any stretch, I just think it's better not to do that.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list