Skip to content

Commit 8132944

Browse files
committed
M2C-22619 Fix Tabs widget with Accordion
1 parent 7324325 commit 8132944

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/web/mage/tabs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,21 @@ define([
102102
* @private
103103
*/
104104
_processPanels: function () {
105-
this.contents = this.element.find(this.options.content);
105+
this.contents = this.element.children(this.options.content);
106106

107-
this.collapsibles = this.element.find(this.options.collapsibleElement);
107+
this.collapsibles = this.element.children(this.options.collapsibleElement);
108108

109109
this.collapsibles
110110
.attr('role', 'presentation')
111111
.parent()
112112
.attr('role', 'tablist');
113113

114-
this.headers = this.element.find(this.options.header);
114+
this.headers = this.element.children(this.options.header);
115115

116116
if (this.headers.length === 0) {
117117
this.headers = this.collapsibles;
118118
}
119-
this.triggers = this.element.find(this.options.trigger);
119+
this.triggers = this.element.children(this.options.trigger);
120120

121121
if (this.triggers.length === 0) {
122122
this.triggers = this.headers;

0 commit comments

Comments
 (0)