We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e06dd51 commit 4c6685fCopy full SHA for 4c6685f
bootstrap-tabcollapse.js
@@ -13,7 +13,14 @@
13
this._initAccordion();
14
this._checkStateOnResize();
15
16
- this.checkState();
+
17
+ // checkState() has gone to setTimeout for making it possible to attach listeners to
18
+ // shown-accordion.bs.tabcollapse event on page load.
19
+ // See https://github.com/flatlogic/bootstrap-tabcollapse/issues/23
20
+ var that = this;
21
+ setTimeout(function() {
22
+ that.checkState();
23
+ }, 0);
24
};
25
26
TabCollapse.DEFAULTS = {
0 commit comments