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

@ -18,4 +18,5 @@ Housekeeping
Bug fixes
*********
| `Issue #4810 <https://redmine.postgresql.org/issues/4810>`_ - Fixed an issue where the user is not able to save the new row if the table is empty.
| `Issue #5646 <https://redmine.postgresql.org/issues/5646>`_ - Ensure that RLS Policy node should be searchable using search object.

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