We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65b237 commit 370ccdfCopy full SHA for 370ccdf
src/tabs/tabs.js
@@ -27,7 +27,8 @@
27
rotate: false,
28
29
// 1.2
30
- history: false
+ history: false,
31
+ updateParent: false
32
},
33
34
addEffect: function(name, fn) {
@@ -159,9 +160,15 @@
159
160
161
// default behaviour
162
current = i;
- tabs.removeClass(conf.current);
163
- tab.addClass(conf.current);
+ tabs.removeClass(conf.current);
164
+ tab.addClass(conf.current);
165
166
+ // update parent class as well
167
+ if (conf.updateParent) {
168
+ tabs.parent().removeClass(conf.current);
169
+ tab.parent().addClass(conf.current);
170
+ }
171
+
172
return self;
173
174
0 commit comments