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

Remove onCheckCellIsEditable prop #2016

Merged
merged 8 commits into from
Oct 29, 2020
Merged

Conversation

nstepien
Copy link
Contributor

@nstepien nstepien commented Apr 22, 2020

I've also made it so editable: false disables the editor, whether we have an editor or not.

@nstepien nstepien self-assigned this Apr 22, 2020
@nstepien nstepien force-pushed the use-column-editable-instead branch from bf2e479 to f7112c6 Compare April 22, 2020 13:45
src/utils/columnUtils.ts Outdated Show resolved Hide resolved
src/utils/columnUtils.ts Outdated Show resolved Hide resolved
@@ -164,7 +164,7 @@ export function canEdit<R, SR>(column: Column<R, SR>, row: R): boolean {
if (typeof column.editable === 'function') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should move canEdit to selectedCellUtils.ts. It is only used once

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@nstepien nstepien requested review from qili26 and removed request for qili26 October 27, 2020 15:02
@nstepien nstepien merged commit 6eac41e into canary Oct 29, 2020
@nstepien nstepien deleted the use-column-editable-instead branch October 29, 2020 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants