Hi, and thanks for this module!
I'm trying to implement this widget in a custom form (as a search bar). I'm using the core taxonomy callback for the options. When I select a term from the list using the enter key, the value briefly appears in the text field and then immediately disappears. Selecting with the mouse works as expected.
Any idea why this could be happening? Here's my code:
$form['search'] = array(
'#type' => 'autocomplete_deluxe',
'#size' => 60,
'#autocomplete_deluxe_path' => 'taxonomy/autocomplete/[field_name]',
'#autocomplete_min_length' => 1,
'#multiple' => FALSE,
);
Comments
Comment #1
Fidelix commentedI can confirm this bug. It happens with the core term selection too...
I tested on Opera and Chrome, and the bug is there.
Comment #2
Fidelix commentedMaybe it's something here?
Comment #3
Fidelix commentedBump.
This is a big usability problem. I have asked 3 persons to fill the node form with the autocomplete, and they all tried to select the values on the dropdown using the keyboard, then pressed enter.
Comment #4
sepgil commentedSorry for that big, dumb bug. I simply had forgotten to add some brackets arround the OR statements in the keypress functions. The problem is now fixed in the dev version.
Comment #5
sepgil commented