mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Akshay Joshi
parent
4cf8c2f300
commit
043025d1eb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user