Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selectable=false still selects rows #2503

Merged
merged 1 commit into from
Dec 13, 2015
Merged

Fix selectable=false still selects rows #2503

merged 1 commit into from
Dec 13, 2015

Conversation

Kingdutch
Copy link
Contributor

The select row function was still called for selectable=false. This patch fixes that.

A possible alternative is to put this check in onCellClick and not calling onRowClick if selectable is false. I'm not sure what you'd prefer but this works for me.

Fixes #2176

The select row function was still called for selectable=false. This patch fixes that.
@alitaheri
Copy link
Member

Thanks a lot, such a nasty bug 😨

alitaheri added a commit that referenced this pull request Dec 13, 2015
Fix selectable=false still selects rows
@alitaheri alitaheri merged commit 65c2b24 into mui:master Dec 13, 2015
@zannager zannager added the component: select This is the name of the generic UI component, not the React module! label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TableBody with selectable=false still selects rows
3 participants