Skip to content

Commit

Permalink
EWPP-1277: Fix code documentation in js file.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergepavle authored and imanoleguskiza committed Jul 8, 2021
1 parent 15776bc commit b3b31c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/patterns/context_nav/js/contextual_navigation.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/**
* @file
* Contextual navigation initialisation code.
* Contextual navigation behavior.
*
* Simplified version of javascript code for supporting contextual navigation composition which is not part of ECL
* anymore. Based on https://github.com/ec-europa/europa-component-library/tree/v2-dev/src/systems/ec/implementations/vanilla/packages/ec-component-contextual-navigation
* implementation. In opposite to original solution we don't use anymore 'autoInit' approach. Initialization of all
* existing
* Simplified version of the deprecated ECL contextual navigation javascript logic, based on
* https://github.com/ec-europa/europa-component-library/tree/v2-dev/src/systems/ec/implementations/vanilla/packages/ec-component-contextual-navigation.
* As opposed to using the original 'autoInit' approach we instead add a simple event listener to the appropriate elements.
*/
(function (Drupal) {
/**
Expand Down
1 change: 1 addition & 0 deletions tests/Functional/ParagraphsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function testAccordionItemParagraph(): void {
$this->assertSession()->fieldExists('field_oe_demo_body[0][subform][field_oe_paragraphs][0][subform][field_oe_text][0][value]');
$this->assertSession()->fieldExists('field_oe_demo_body[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]');
$this->assertSession()->fieldNotExists('field_oe_demo_body[0][subform][field_oe_paragraphs][0][subform][field_oe_icon]');

$values = [
'title[0][value]' => 'Test Accordion',
'field_oe_demo_body[0][subform][field_oe_paragraphs][0][subform][field_oe_text][0][value]' => 'Accordion item title',
Expand Down

0 comments on commit b3b31c8

Please sign in to comment.