Steps to duplicate:

  1. Set up a view as a block, let's say it's a list of movies
  2. Add an exposed filter for the movies' titles
  3. Enable AJAX and Auto Submit for the Exposed filter form. Save and view the block.

Desired operation: when you type a movie's name and press 'enter' before the autosubmit takes place, the Views block should refresh via AJAX and fetch all movies of that title

Actual operation: when you type a movies's name and press 'enter' before the autosubmit takes place, the entire page refreshes with a contextual argument in the URL, as if the [enter] key was not captured

The problem happens on the Safari 6 browser, possibly because (I'm just making conjecture here) Safari handles the 'submit' action for key 13 [enter] differently than other browsers, and maybe the keyup/keydown jQuery functions aren't handling this in an expected way.

The problem may be coming from ctools/js/auto-submit.js, since the problem goes away if autosubmit is disabled.

#1 ctools-disable_enter_submit-2014953-2.patch622 bytesmicromegas
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


micromegas’s picture

Status: Active » Needs review
622 bytes
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es). View

For the time being, I simply disabled the enter key via JS.

micromegas’s picture

Status: Needs review » Active

Set back to active so as not to trigger the tests, since this is just a bandaid.

Exploratus’s picture

Check this issue out. Fixes the problem.

micromegas’s picture

Thank you; I applied the patch in that thread, and all is well!

micromegas’s picture

Issue summary: View changes
Status: Active » Fixed

Fixed by patch in another issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jaydee1818’s picture

I'm having the same issue and the patch in #3 did not work for me.

Further more, I have Auto Submit turned on using the BEF module and the issue is also occurring as users enter text into the field and the ajax submission is fired. Strangely, it works as it should in Firefox 26 - but in all other browsers I see the redirect to home with query string in the URL.

jaydee1818’s picture

Status: Closed (fixed) » Active