subtab bug fix
This commit is contained in:
parent
751de46b7b
commit
9d57da7061
|
|
@ -68,4 +68,13 @@
|
|||
|
||||
.sub-tab-container.nav > li[style*="display: none"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Класс для скрытия контейнера субтабов */
|
||||
.sub-tab-container.subtab-hidden {
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
pointer-events: none !important;
|
||||
height: 0 !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
|
@ -189,9 +189,9 @@ function setup_custom_subtabs(wrapper, currentDoctype) {
|
|||
wrapper.find(".sub-tab-container").each(function() {
|
||||
const containerParentId = $(this).attr("data-parent-id");
|
||||
if (containerParentId === tabId) {
|
||||
$(this).show();
|
||||
$(this).removeClass("subtab-hidden");
|
||||
} else {
|
||||
$(this).hide();
|
||||
$(this).addClass("subtab-hidden");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue