Skip to content

Commit

Permalink
Fix acc id multiple nested accordion paras (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkshire-pudding authored Jan 9, 2023
1 parent 2df6450 commit 6dfb1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paragraphs_jquery_ui_accordion.module
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function paragraphs_jquery_ui_accordion_field_formatter_view($entity_type, $enti
$entity_ids = entity_extract_ids($entity_type, $entity);
$entity_id = $entity_ids[0];

$accordion_id = 'accordion-' . $instance['field_name'];
$accordion_id = 'accordion-' . $instance['field_name'] . '-' . $entity_id;
$element[0]['#attached'] = array(
'library' => array(
array('system', 'ui.accordion'),
Expand Down

0 comments on commit 6dfb1c3

Please sign in to comment.