fixed this. attachBehaviors bug

This commit is contained in:
2024-09-30 13:18:24 +02:00
parent b6d0f238dd
commit 94eec641da
3 changed files with 24 additions and 38 deletions
@@ -1512,7 +1512,8 @@
this.cartelSwitchInterval = setInterval(this.switchCartel.bind(this), this.cartelSwitchIntervalMS);
}
// call drupal behaviours (for addtoany)
Drupal.attachBehaviors(this.$cartel);
console.log('AudioPlayer onNodeLoaded', this.$cartel);
Drupal.attachBehaviors(this.$cartel.get(0));
}
// open automaticly tha article if needed
this.setAutoOpenArticle();