mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-01 21:09:10 -06:00
Fixed an issue where strikeout is getting removed on scrolling of index column of the table.
refs #6157
This commit is contained in:
parent
a5a83da045
commit
1b850ff616
@ -1057,6 +1057,18 @@ define('tools.querytool', [
|
||||
self.handler.slickgrid = grid;
|
||||
// Add listener on data-grid table scroll.
|
||||
self.handler.slickgrid.onScroll.subscribe(function() {
|
||||
// Mark selected rows cells as selected.
|
||||
setTimeout(() => {
|
||||
// Can't use setSelectedRows as we are using cellSelectionModel.
|
||||
var cellSelectionModel = self.handler.gridView.grid.getSelectionModel();
|
||||
var ranges = cellSelectionModel.getSelectedRanges();
|
||||
|
||||
if (ranges.length > 1) {
|
||||
// Set selected rows cell as selected.
|
||||
cellSelectionModel.setSelectedRanges(ranges);
|
||||
}
|
||||
}, 100);
|
||||
|
||||
if(Object.keys(self.handler.data_store.deleted).length > 0) {
|
||||
setTimeout(() => {
|
||||
$(self.handler.gridView.grid.getCanvasNode()).find('div.selected').removeClass('strikeout');
|
||||
|
Loading…
Reference in New Issue
Block a user