Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292480

View inside core modal doesn't refresh correctly when reopened

$
0
0

Hi there,

I've run into the following bug. When using a view with exposed filters in a modal (ajax enabled for the view), the exposed form stops working when closing and opening the modal again. Hitting the apply button has no effect and a js error about scrolltotop is thrown.

The drupal and views ajax are complex, and I'm not completely sure what happens. As far as I can see, settings coming from the view page are added to the parent page and a list of ajax views is built up there each time the modal with the view is opened.

Some tests / observations:
Inside Drupal.views.ajaxView this.$exposed_form.once('exposed-form').each($.proxy(this.attachExposedFormAjax, this)); is called. When the once is removed, the form submits again.
The js error inside Drupal.AjaxCommands.prototype.viewsScrollTop can be fixed by checking for the existence of the response.selector element first.

A similar issue is reported on entity reference browser: https://www.drupal.org/node/2844659.


Viewing all articles
Browse latest Browse all 292480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>