Skip to content
Snippets Groups Projects
Commit d84c8f8c authored by Ben Mullins's avatar Ben Mullins
Browse files

Issue #3087950 by Utkarsh_33, swatichouhan012, komalk, Sivaji_Ganesh_Jojodae,...

Issue #3087950 by Utkarsh_33, swatichouhan012, komalk, Sivaji_Ganesh_Jojodae, Therapychild, Sakthivel M, lauriii, thalles, shalinigaur, kostyashupenko, fhaeberle, amjad1233, sibustephen, pankaj.singh, KondratievaS, pranav.aeer, hooroomoo, ckrina, huzooka: Progress throbber position is incorrect
parent b6aef35b
Branches
Tags
35 merge requests!11628Update file MediaLibraryWidget.php,!7564Revert "Issue #3364773 by roshnichordiya, Chris Matthews, thakurnishant_06,...,!5752Issue #3275828 by joachim, quietone, bradjones1, Berdir: document the reason...,!5688Issue #3087950 by Utkarsh_33, swatichouhan012, komalk, Sivaji_Ganesh_Jojodae,...,!5627Issue #3261805: Field not saved when change of 0 on string start,!5427Issue #3338518: send credentials in ajax if configured in CORS settings.,!5395Issue #3387916 by fjgarlin, Spokje: Each GitLab job exposes user email,!5217Issue #3386607 by alexpott: Improve spell checking in commit-code-check.sh,!5064Issue #3379522 by finnsky, Gauravvvv, kostyashupenko, smustgrave, Chi: Revert...,!5040SDC ComponentElement: Transform slots scalar values to #plain_text instead of throwing an exception,!4958Issue #3392147: Whitelist IP for a Ban module.,!4942Issue #3365945: Errors: The following table(s) do not have a primary key: forum_index,!4894Issue #3280279: Add API to allow sites to opt in to upload SVG images in CKEditor 5,!4857Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!4856Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!4788Issue #3272985: RSS Feed header reverts to text/html when cached,!4716Issue #3362929: Improve 400 responses for broken/invalid image style routes,!4553Draft: Issue #2980951: Permission to see own unpublished comments in comment thread,!4273Add UUID to sections,!4192Issue #3367204: [CKEditor5] Missing dependency on drupal.ajax,!4158Issue #3087950 by Utkarsh_33, swatichouhan012, komalk, Sivaji_Ganesh_Jojodae,...,!4100Issue #3249600: Add support for PHP 8.1 Enums as allowed values for list_* data types,!4090Draft: Issue #3362924 by shwetaDevkate, Gauravvvv, frank8199,!3977Issue #3359494: Focus is lost on dialog close if the opener is inside a collapsible element,!3690Issue #3341682: New config schema data type: `required_label`,!3679Issue #115801: Allow password on registration without disabling e-mail verification,!3676Issue #3347497: Introduce a FetchModeTrait to allow emulating PDO fetch modes,!3629Issue #3347343: Continuation Add Views EntityReference filter to be available for all entity reference fields,!3106Issue #3017548: "Filtered HTML" text format does not support manual teaser break (<!--break-->),!3066Issue #3325175: Deprecate calling \Drupal\menu_link_content\Form\MenuLinkContentForm::_construct() with the $language_manager argument,!3004Issue #2463967: Use .user.ini file for PHP settings,!2851Issue #2264739: Allow multiple field widgets to not use tabledrag,!1484Exposed filters get values from URL when Ajax is on,!925Issue #2339235: Remove taxonomy hard dependency on node module,!872Draft: Issue #3221319: Race condition when creating menu links and editing content deletes menu links
......@@ -991,7 +991,13 @@
this.progress.element = $(
Drupal.theme('ajaxProgressThrobber', this.progress.message),
);
$(this.element).after(this.progress.element);
if ($(this.element).closest('[data-drupal-ajax-container]').length) {
$(this.element)
.closest('[data-drupal-ajax-container]')
.after(this.progress.element);
} else {
$(this.element).after(this.progress.element);
}
};
/**
......
......@@ -13,7 +13,7 @@
#}
{% if children %}
{% apply spaceless %}
<div class="dropbutton-wrapper">
<div class="dropbutton-wrapper" data-drupal-ajax-container>
<div class="dropbutton-widget">
{{ children }}
</div>
......
......@@ -179,7 +179,7 @@ protected function doTestRenderedOutput(AccountInterface $account, $check_cache
$expected = $access ? "<a href=\"$node_url/delete?destination=/\" hreflang=\"en\">delete</a>" : "";
$output = $view->style_plugin->getField($index, 'delete_node');
$this->assertSame($expected, (string) $output);
$expected = $access ? ' <div class="dropbutton-wrapper"><div class="dropbutton-widget"><ul class="dropbutton">' .
$expected = $access ? ' <div class="dropbutton-wrapper" data-drupal-ajax-container><div class="dropbutton-widget"><ul class="dropbutton">' .
'<li><a href="' . $node_url . '/edit?destination=/" hreflang="en">Edit</a></li>' .
'<li><a href="' . $node_url . '/delete?destination=/" hreflang="en">Delete</a></li>' .
'</ul></div></div>' : '';
......
......@@ -20,6 +20,7 @@ class ThrobberTest extends WebDriverTestBase {
'views_ui',
'views_ui_test_field',
'hold_test',
'block',
];
/**
......@@ -93,4 +94,21 @@ public function testThemingThrobberElement() {
$web_assert->assertNoElementAfterWait('css', '.custom-ajax-progress-throbber');
}
/**
* Tests progress throbber element position.
*/
public function testProgressThrobberPosition() {
$this->drupalLogin($this->rootUser);
$this->drupalGet('/admin/structure/block');
$this->clickLink('Place block');
hold_test_response(FALSE);
$this->assertSession()->waitForText('Place Block');
$this->clickLink('Place block');
hold_test_response(TRUE);
$this->assertSession()->elementExists('xpath', '//div[contains(@class, "dropbutton-wrapper")]/following-sibling::div[contains(@class, "ajax-progress-throbber")]');
hold_test_response(FALSE);
$this->assertSession()->assertNoElementAfterWait('css', '.ajax-progress-throbber');
}
}
......@@ -11,7 +11,7 @@
#}
{% if children %}
{% apply spaceless %}
<div class="dropbutton-wrapper">
<div class="dropbutton-wrapper" data-drupal-ajax-container>
<div class="dropbutton-widget">
{{ children }}
</div>
......
......@@ -11,7 +11,7 @@
#}
{% if children %}
{% apply spaceless %}
<div class="dropbutton-wrapper">
<div class="dropbutton-wrapper" data-drupal-ajax-container>
<div class="dropbutton-widget">
{{ children }}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment