Fixed an issue where the user is not able to save the new row if the table is empty. Fixes #4810

This commit is contained in:
Yogesh Mahajan
2020-07-24 14:30:22 +05:30
committed by Akshay Joshi
parent 4cf8c2f300
commit 043025d1eb
2 changed files with 9 additions and 0 deletions

View File

@@ -1086,6 +1086,14 @@ define('tools.querytool', [
}
});
// Handles blur event for slick grid cell
$('.slick-viewport').on('blur', 'input.editor-text', function () {
window.setTimeout(function() {
if (Slick.GlobalEditorLock.isActive())
Slick.GlobalEditorLock.commitCurrentEdit();
});
});
// Listener function which will be called when user updates existing rows
grid.onCellChange.subscribe(function(e, args) {
// self.handler.data_store.updated will holds all the updated data