Skip to content

Commit

Permalink
Merge pull request #52 from froboy/faq-find
Browse files Browse the repository at this point in the history
fix: Restore FAQ accordion functionality in D10
  • Loading branch information
podarok authored Jul 3, 2023
2 parents 8157cd4 + 3b5775e commit 1ce810e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openy_prgf/modules/openy_prgf_faq/js/paragraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
(function ($) {
Drupal.behaviors.openyFaqParagraph = {
attach: function( context ) {
$( context ).find( '.paragraph--type--faq-item' ).once( 'paragraphFaq' ).each( function () {
$(once('paragraphFaq', '.paragraph--type--faq-item', context))
.each(function () {
// Q/A wrapper.
var wrapper = $( this );
// Question click event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ paragraph:
version: 1.x
js:
js/paragraph.js: {}
dependencies:
- core/jquery
- core/once

0 comments on commit 1ce810e

Please sign in to comment.