Fix bug: remove first custom group with separator in the tab

This commit is contained in:
Julia.Radzhabova
2025-12-12 15:20:40 +03:00
parent 319b3440d4
commit 8dfe5c65ae

View File

@ -716,7 +716,7 @@ define([
button.cmpEl.closest('.btn-slot').remove(); button.cmpEl.closest('.btn-slot').remove();
if (group.children().length<1) { if (group.children().length<1) {
var in_more = group.closest('.more-container').length>0; var in_more = group.closest('.more-container').length>0;
in_more ? group.next('.separator').remove() : group.prev('.separator').remove(); (in_more || group.prev().length===0) ? group.next('.separator').remove() : group.prev('.separator').remove(); // remove separator before empty group or after first empty group
group.remove(); group.remove();
if (in_more && $morepanel.children().filter('.group').length === 0) { if (in_more && $morepanel.children().filter('.group').length === 0) {
btnsMore[tab.action] && btnsMore[tab.action].isActive() && btnsMore[tab.action].toggle(false); btnsMore[tab.action] && btnsMore[tab.action].isActive() && btnsMore[tab.action].toggle(false);