Skip to content

Commit

Permalink
Filter column events by finished and source
Browse files Browse the repository at this point in the history
Filter the source addionally by event type
  • Loading branch information
hingew committed Jan 19, 2024
1 parent 849f92e commit b05cfbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ag-grid-webcomponent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ class AgGrid extends HTMLElement {

columnEvents.map((event) =>
this._addEventHandler(event, "columnEvents", function (params) {
// sizeColumnsToFit will be dispatched when the grid is scrolled horizontally
if (!params.finished || (params.type == "columnResized" && params.source == "sizeColumnsToFit")) { return }

const stateChangeEvent = columnStateChangedEvent(
params,
params.columnApi.getColumnState()
Expand Down

0 comments on commit b05cfbf

Please sign in to comment.