Skip to content
Snippets Groups Projects
Commit fd60716c authored by Sascha Eggenberger's avatar Sascha Eggenberger
Browse files

tableheader.js update

parent 862ef024
No related merge requests found
((Drupal, once) => {
Drupal.behaviors.ginTableHeader = {
attach: function attach(context) {
attach: (context) => {
Drupal.ginTableHeader.init(context);
},
};
Drupal.ginTableHeader = {
init: function (context) {
once('ginTableHeader', '.sticky-enabled', context).forEach(el => {
// Watch sticky table header.
const observer = new IntersectionObserver(
......@@ -62,4 +68,5 @@
});
},
};
})(Drupal, once);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment