diff --git a/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php b/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php index 6df8bf9d4a..699b1a3737 100644 --- a/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php +++ b/core/modules/text/tests/src/FunctionalJavascript/TextareaWithSummaryTest.php @@ -23,7 +23,7 @@ class TextareaWithSummaryTest extends JavascriptTestBase { protected function setUp() { parent::setUp(); - $this->drupalCreateContentType(array('type' => 'page')); + $this->drupalCreateContentType(['type' => 'page']); $account = $this->drupalCreateUser(['create page content', 'edit own page content']); $this->drupalLogin($account); diff --git a/core/modules/text/text.es6.js b/core/modules/text/text.es6.js index 6c11adae1b..862d4c3ec5 100644 --- a/core/modules/text/text.es6.js +++ b/core/modules/text/text.es6.js @@ -19,7 +19,7 @@ const $summary = $widget.find('.js-text-summary-wrapper'); const $summaryLabel = $summary.find('label').eq(0); - const $full = $widget.find('.js-text-full').closest('.js-form-item'); + const $full = $widget.children('.js-form-type-textarea'); let $fullLabel = $full.find('label').eq(0); // Create a placeholder label when the field cardinality is greater