From f017c83bd7bb804234cbf894bf7a01f67c757bad Mon Sep 17 00:00:00 2001
From: jurgenhaas <jurgenhaas@168924.no-reply.drupal.org>
Date: Mon, 4 Feb 2019 18:11:03 -0500
Subject: [PATCH] Issue #3006673 by jurgenhaas, drupalfan2, Macronomicus: Affix
 effect with problems

---
 bootstrap_barrio.libraries.yml | 1 +
 js/affix.js                    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bootstrap_barrio.libraries.yml b/bootstrap_barrio.libraries.yml
index b2f33d9..12579ce 100644
--- a/bootstrap_barrio.libraries.yml
+++ b/bootstrap_barrio.libraries.yml
@@ -40,6 +40,7 @@ global-styling:
       css/print.css: { media: print }
   dependencies:
     - core/jquery
+    - core/jquery.once
     - core/drupal
 
 affix:
diff --git a/js/affix.js b/js/affix.js
index 45522f6..e3101e4 100644
--- a/js/affix.js
+++ b/js/affix.js
@@ -26,7 +26,7 @@
       
       };
 
-      $('[data-toggle="affix"]').each(function() {
+      $('[data-toggle="affix"]').once().each(function() {
         var ele = $(this),
             wrapper = $('<div></div>');
     
-- 
GitLab