Skip to content

Commit

Permalink
LPS-153322 Use getAttribute since this is an AUI instance and doesn’t…
Browse files Browse the repository at this point in the history
… have the dataset property
  • Loading branch information
victorg1991 authored and brianchandotcom committed May 12, 2022
1 parent 4ced337 commit d5d3a9d
Showing 1 changed file with 11 additions and 8 deletions.
Expand Up @@ -300,11 +300,12 @@ AUI.add(

if (fieldWrapper && formTabs) {
var tabs = formTabs.all('.nav-item');
var tabsNamespace =
formTabs.dataset['tabs-namespace'];
var tabsNamespace = formTabs.getAttribute(
'data-tabs-namespace'
);

var tabNames = AArray.map(tabs._nodes, (tab) => {
return tab.dataset['tab-name'];
return tab.getAttribute('data-tab-name');
});

var fieldWrapperId = fieldWrapper
Expand All @@ -319,11 +320,13 @@ AUI.add(
);
});

Liferay.Portal.Tabs.show(
tabsNamespace,
tabNames,
fieldTabId.dataset['tab-name']
);
if (tabsNamespace) {
Liferay.Portal.Tabs.show(
tabsNamespace,
tabNames,
fieldTabId.getAttribute('data-tab-name')
);
}
}
}
},
Expand Down

0 comments on commit d5d3a9d

Please sign in to comment.