Steps to duplicate:
- Set up a view as a block, let's say it's a list of movies
- Add an exposed filter for the movies' titles
- 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.
Comment | File | Size | Author |
---|---|---|---|
#1 | ctools-disable_enter_submit-2014953-2.patch | 622 bytes | micromegas |
Comments
Comment #1
micromegas CreditAttribution: micromegas commentedFor the time being, I simply disabled the enter key via JS.
Comment #2
micromegas CreditAttribution: micromegas commentedSet back to active so as not to trigger the tests, since this is just a bandaid.
Comment #3
Exploratus CreditAttribution: Exploratus commentedCheck this issue out. Fixes the problem.
https://drupal.org/comment/8262487#comment-8262487
Comment #4
micromegas CreditAttribution: micromegas commentedThank you; I applied the patch in that thread, and all is well!
Comment #5
micromegas CreditAttribution: micromegas commentedFixed by patch in another issue.
Comment #7
jaydee1818 CreditAttribution: jaydee1818 commentedI'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.
Comment #8
jaydee1818 CreditAttribution: jaydee1818 commented