mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
Fix bug: remove first custom group with separator in the tab
This commit is contained in:
@ -716,7 +716,7 @@ define([
|
||||
button.cmpEl.closest('.btn-slot').remove();
|
||||
if (group.children().length<1) {
|
||||
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();
|
||||
if (in_more && $morepanel.children().filter('.group').length === 0) {
|
||||
btnsMore[tab.action] && btnsMore[tab.action].isActive() && btnsMore[tab.action].toggle(false);
|
||||
|
||||
Reference in New Issue
Block a user