From 8c62a32c2da35b38d60a7930863a65ae820b41b4 Mon Sep 17 00:00:00 2001 From: Lauri Eskola Date: Fri, 28 Jan 2022 11:53:59 +0200 Subject: Issue #3239123 by hooroomoo, bnjmnm, nod_: Refactor (if feasible) uses of the jQuery text function to use vanillaJS --- core/modules/comment/comment-entity-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/comment/comment-entity-form.js') diff --git a/core/modules/comment/comment-entity-form.js b/core/modules/comment/comment-entity-form.js index 239b13bb0ee..7b7c8b0ed64 100644 --- a/core/modules/comment/comment-entity-form.js +++ b/core/modules/comment/comment-entity-form.js @@ -9,7 +9,7 @@ Drupal.behaviors.commentFieldsetSummaries = { attach(context) { const $context = $(context); - $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label').text())); + $context.find('fieldset.comment-entity-settings-form').drupalSetSummary(context => Drupal.checkPlain($(context).find('.js-form-item-comment input:checked').next('label')[0].textContent)); } }; -- cgit v1.2.3