by pilif · 15y ago · 0 comments
I'm complaining about the way it responds to mouse actions: The real dropdown box, on my machine, expands the menu on mouse down after a no-doubt OS-specific delay. The fake dropdown doesn't - it only reacts on mouse up.
Of course, you can't make a a control work exactly like its native counterpart - but that IMHO just means that you shouldn't even try imitating them and provide its own unique look.
I really dislike nearly-native controls - they feel wrong to me.
But don't get me wrong: The controls are really cool and incredibly useful. If only they didn't try to mimic the native look without quite matching it.
Try mouse scrolling too far whilst the menu's options are open/visible. The parent page scrolls as well when you reach the start/end. This doesn't happen with a normal select menu.
I wonder if there's a way to do an event.preventDefault() on the mouse scroll event when reaching the end of the list?
Better solution: on mouse click, hide the box. Only show the box for autocompletes.
The search for "Tax" yields result, but nothing for "Estates". I think it doesn't work for first word if the term contains a space.
EDIT: was testing on Firefox 5, works on Opera. Bug filed: https://github.com/harvesthq/chosen/issues/50
In some cases, like upgrading from Snow Leopard to Lion or Windows XP to Windows 7, the users adapt to the change. This is not likely to happen for a Javascript contro that is not in use on any major sites.