Skip to content

Commit

Permalink
Fix double click issue (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Jan 4, 2023
1 parent 44d5c7e commit 9a8ad13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
var $collapsibleCard = $(this);
var $toggle = $collapsibleCard.find('.collapsible-card__toggle');
var $content = $collapsibleCard.find('.collapsible-card__content');
$toggle.on('click', function (event) {
$toggle.once().on('click', function (event) {
event.preventDefault();
$collapsibleCard.toggleClass('collapsible-card--active');
$content.slideToggle(200);
Expand Down

0 comments on commit 9a8ad13

Please sign in to comment.