Skip to content

Remove onCheckCellIsEditable prop - #2016

Merged
nstepien merged 8 commits into
canaryfrom
use-column-editable-instead
Oct 29, 2020
Merged

nstepien merged 8 commits into
canaryfrom
use-column-editable-instead

Conversation

@nstepien

@nstepien nstepien commented Apr 22, 2020

Copy link
Copy Markdown
Collaborator

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

@nstepien
nstepien requested a review from amanmahajan7 April 22, 2020 13:22
@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
Comment thread src/utils/columnUtils.ts Outdated
Comment thread src/utils/columnUtils.ts Outdated
Comment thread src/utils/columnUtils.ts Outdated
@@ -164,7 +164,7 @@ export function canEdit<R, SR>(column: Column<R, SR>, row: R): boolean {
if (typeof column.editable === 'function') {

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator 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