Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the Drupal.views.ajaxView.prototype.attachExposedFormAjax function in the ajax_view.js file only input fields of types submit and image are selected. In a project I'm currently working on the submit button is not an input field, but a button of type submit. Because of this, the AJAX functionality is not working. With a small change to the javascript selector it will also allow for a button of type submit.
I will attach a patch for this.
Comment | File | Size | Author |
---|---|---|---|
#2 | ajax_views_selectors-2897276.js_.patch | 745 bytes | rfbrandsma |
Comments
Comment #2
rfbrandsma CreditAttribution: rfbrandsma commentedComment #3
cilefen CreditAttribution: cilefen commentedComment #4
dawehnerIf we want to do that kind of stuff, let's ensure to add test coverage for it. The new selector could maybe include buttons explitely instead of allowing everything.
Comment #5
mvwensen CreditAttribution: mvwensen commentedThis issue seems a duplicate of #1551534: Submit buttons themed as <button> element fail to trigger ajax in Views exposed forms