question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

changedColumn gets the value instead of column name on onFilterChange event

See original GitHub issue

When the filter is changed and according to the parameter name, changedColumn should be the name of the column to be filtered, instead, I’m getting the value of the column to be filtered.

Expected Behavior

changedColumn should get the column name to be filtered instead.

Current Behavior

changedColumn is getting the value to be filtered.

Steps to Reproduce (for bugs)

I didn’t do too much to repro it, just add the event onFilterChange and a console.log(changedColumn, filterList) and that’s it.

      onFilterChange: (changedColumn, filterList) => {
        console.log(changedColumn, filterList)
      }

Your Environment

Tech Version
Material-UI ^3.9.2
MUI-datatables ^2.0.0-beta.56
React ^16.8.1
browser Chrome Version 72.0.3626.121

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gabrielliwerantcommented, May 7, 2019

Yes, that makes sense, the PR has not been merged yet.

0reactions
gabrielliwerantcommented, May 24, 2019

Closing this issue as it should have been resolved by the PR referenced here, and is a part of the release made shortly afterwards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get the column name on clearing the filter in AGGRID?
For that I need the column name. onFilterChanged: function(event){ var newObj = {} newObj = gridOptions.api.getFilterModel ...
Read more >
Filter dropdown with a column name equal to the va...
Hi All, I am having a weird issue filtering dropdown based on value from another dropdown. Basically I have 2 SharePoint lists with...
Read more >
Mui-dt NPM | npm.io
MUI-DT is a data tables component built on Material-UI. It comes with features like filtering, resizable + view/hide columns, search, export to CSV...
Read more >
Grid Events - JavaScript Data Grid
The name of the callback is constructed by prefixing the event name with on . ... Value has changed after editing (this event...
Read more >
Refresh breaks due to COLUMN NAME CHANGES? 3 ways to ...
A simple Power BI column name change in the data source can break a power query refresh. It can be really frustrating that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found