标签: javascript reactjs ag-grid
需要为在反应虚拟化场景和排序筛选场景中工作的每个聚集单元添加mouseup事件,
let elementsArray = document.querySelectorAll(".ag-cell"); elementsArray.forEach((elem) => { elem.addEventListener("mouseup", this.mouseUpHandler); });