subtab bug fix

This commit is contained in:
Ali 2026-01-12 18:45:00 +04:00
parent 751de46b7b
commit 9d57da7061
2 changed files with 11 additions and 2 deletions

View File

@ -69,3 +69,12 @@
.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;
}

View File

@ -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");
}
});
});