Remove Focus from AgGrid when click outside the ag-grid
问题 I'm using AG Grid on a website. When the user clicks a cell, it is focused and gets a blue outline. I need to remove this focus when the user clicks outside the selected element. const body = document.body; body.addEventListener('mouseup', (e) => { const container = this.commonAgGrid.nativeElement; if (!container.contains(e.target)) { this.gridApi.clearFocusedCell(); } }); But this is not working when I am using mat select component in ag-grid. Example- plunker Please change the dropdown