mouseupHandler(e) {
var target = e.target.classList.contains('e-work-cells');
var selectedCells = this.scheduleObj.element.querySelectorAll(".e-selected-cell");
if (selectedCells.length > 1 && target) {
var activeCellsData = this.scheduleObj.getCellDetails(this.scheduleObj.getSelectedElements());
this.scheduleObj.openEditor(activeCellsData, 'Add');
}
}
componentDidMount() {
document.addEventListener('mouseup', this.mouseupHandler.bind(this));
}
componentWillUnmount() {
document.removeEventListener('mouseup', this.mouseupHandler.bind(this));
} |