material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[TableHeader] onSelectAll prop never gets called

Open shall11 opened this issue 11 years ago • 3 comments

I passed a callback into TableHeader's onSelectAll prop but it never gets called. In table-header.js, it does envoke "this.props.onSelectAll(checked)" except the prop I passed in was overwritten in table.js with Table's own _onSelectAll function when the TableHeader was being created in _createTableHeader.

shall11 avatar Aug 31 '15 22:08 shall11

I have the same issue. The callback in onSelectAll is never called. Checking the "all" checkbox does call the onRowSelection callback, but not when un-checking.

michaelntech avatar Oct 09 '15 12:10 michaelntech

+1.I find it wll call _onSelectAll function in table-header.jsx but not call mine.

Ben07 avatar Nov 13 '15 12:11 Ben07

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it. Still, we will accept PR fixes until v1-beta takes over the master branch.

oliviertassinari avatar Jul 28 '17 11:07 oliviertassinari