Skip to content
Snippets Groups Projects
Commit 2b7aded9 authored by lugir's avatar lugir
Browse files

Issue #3386397 by smurfxx: 1.8.0-rc2 breaks ajax views ui

parent 34106a75
No related branches found
Tags 7.x-5.7
No related merge requests found
......@@ -83,10 +83,12 @@ function hook_form_{{ form_id }}_alter(&$form, \Drupal\Core\Form\FormStateInterf
// Ajax forms.
// @see AjaxHelperTrait::isAjax()
$isAjax = in_array(\Drupal::request()->get('_wrapper_format'), [
'drupal_ajax',
// Issue #3386397: breaks ajax views ui.
// 'drupal_ajax',.
'drupal_dialog',
'drupal_modal',
]);
if ($isAjax) {
$wrapper_id = "mix_ajax_form_" . $form_id;
$form['#prefix'] = '<div id="' . $wrapper_id . '">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment