I've had a number of clients get tripped up by the current autocompleteSubmit function in this theme. The attached patch modifies the function so that hitting enter only closes the suggestions popup if the user has interacted with it in some way.

Scenario 1: User tabs to search field, enters keywords, hits enter -> search form is submitted

Scenario 2: User tabs to search field, arrows down to select an autocomplete suggestion, hits enter. -> suggestion pop up is closed and user has to hit enter a second time in order to submit the form

CommentFileSizeAuthor
bootstrap-autocomplete-submit.patch860 bytesBBC
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BBC created an issue. See original summary.

markhalliwell’s picture

Status: Active » Closed (won't fix)
markhalliwell’s picture

Possible duplicate.