keevo-components 1.5.36 → 1.5.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1118,7 +1118,7 @@ class TableComponent {
|
|
|
1118
1118
|
this.menuFiltro = false;
|
|
1119
1119
|
this.checkboxClicked = false;
|
|
1120
1120
|
let visibilityMode = 'hidden';
|
|
1121
|
-
this.renderer.setStyle(this.menuFiltroDiv
|
|
1121
|
+
this.renderer.setStyle(this.menuFiltroDiv?.nativeElement, 'visibility', visibilityMode);
|
|
1122
1122
|
}
|
|
1123
1123
|
onEscapeKey(event) {
|
|
1124
1124
|
this.fecharMenuFiltro();
|
|
@@ -1128,7 +1128,7 @@ class TableComponent {
|
|
|
1128
1128
|
const menuFiltroDiv = this.elementRef.nativeElement.querySelector('#menuFiltroDiv');
|
|
1129
1129
|
const botaoFiltro = this.elementRef.nativeElement.querySelector('#botaoFiltro');
|
|
1130
1130
|
const isCheckboxClicked = clickedElement.classList.toString().includes('p-checkbox') || event.target.classList.toString() == '';
|
|
1131
|
-
const isInsideMenu = menuFiltroDiv
|
|
1131
|
+
const isInsideMenu = menuFiltroDiv?.contains(clickedElement) || botaoFiltro?.contains(clickedElement) || isCheckboxClicked;
|
|
1132
1132
|
if (isInsideMenu)
|
|
1133
1133
|
return;
|
|
1134
1134
|
else
|