Skip to content

Commit

Permalink
Fix #2868 by removing not working optimalization check (#2875)
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij authored Oct 29, 2024
1 parent 1a7e1eb commit 78ff71e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Core/Components/DataGrid/FluentDataGrid.razor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
let initialColumnsWidths = {};
var latestGridElement = null;

export function init(gridElement) {
if (gridElement === undefined || gridElement === null) {
Expand Down Expand Up @@ -159,9 +158,6 @@ export function checkColumnPopupPosition(gridElement, selector) {
}
}
export function enableColumnResizing(gridElement) {
if (gridElement === latestGridElement)
return;
latestGridElement = gridElement;
const columns = [];
let min = 75;
let headerBeingResized;
Expand Down Expand Up @@ -224,7 +220,9 @@ export function enableColumnResizing(gridElement) {
resizeHandle = target;
headerBeingResized = target.parentNode;

resizeHandle.setPointerCapture(pointerId);
if (resizeHandle) {
resizeHandle.setPointerCapture(pointerId);
}
};

const dragHandle = header.querySelector('.col-width-draghandle');
Expand Down

0 comments on commit 78ff71e

Please sign in to comment.