#189 new
Guy Wicks

AutoSuggest and the tab key - onItemSelect event not fired

Reported by Guy Wicks | September 30th, 2011 @ 10:10 AM

Glow 1.7.7

When you use the AutoSuggest widget, with 'complete:true' enable and if the user types a few letters, gets a match (either by accepting the autocomplete or using the keyboard to hilight a match) and then uses the tab key to move to the next element on the form, the 'onItemSelect' is not fired.

What this means is that if you are using an "index" value to populate a hidden form field it can appear to the user that either

a) they chose an option but the "hidden" value was not set so the application fails

or worse

b) click on the first suggestion, change the selection and use the tab key leaving the hidden field out-of-sync and corrupting data

I would expect that "onItemSelected" would be fired on both "mouse click" and "tab key" events.

Sample available:

http://molcat.bl.uk/dbu_common/js/glow/glow_test.htm

Steps to reproduce:

Type "a" into first field, use keyboard to select colour (aqua) and press tab
No event fired (alert box)
No value set in "hidden" text box

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket

Pages