Skip to content
Snippets Groups Projects
Commit a6d7ab0f authored by Tögl, Christina's avatar Tögl, Christina
Browse files

Fix breadcrumb menu width condition

parent 1710aaf1
Branches
No related tags found
No related merge requests found
Pipeline #79214 passed
......@@ -1974,7 +1974,9 @@ export class NextcloudFilePicker extends ScopedElementsMixin(DBPLitElement) {
// computations for overflow - end
if (!menu.classList.contains('hidden')) { // add event listener for clicking outside of menu
menu.setAttribute('style', 'max-width: ' + maxWidth + 'px;'); //TODO verify if this is enough
if (!isMenuOverflow) {
menu.setAttribute('style', 'max-width: ' + maxWidth + 'px;');
}
document.addEventListener('click', this.boundCloseBreadcrumbMenuHandler);
this.initateOpenBreadcrumbMenu = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment