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

"disabled" option of plugin is not working #28

Open
ab-pm opened this issue Oct 11, 2023 · 0 comments · May be fixed by #29
Open

"disabled" option of plugin is not working #28

ab-pm opened this issue Oct 11, 2023 · 0 comments · May be fixed by #29

Comments

@ab-pm
Copy link

ab-pm commented Oct 11, 2023

The draft-js-checkable-list-plugin decorates the <CheckableListItem> with a disabled prop, yet that doesn't actually take such a prop:

type Props = {
contentState: ContentState,
block: ContentBlock,
customStyleMap: Object,
customStyleFn: Function,
tree: List<any>,
selection: SelectionState,
decorator: DraftDecoratorType,
forceSelection: boolean,
direction: BidiDirection,
blockStyleFn: Function,
offsetKey: string,
blockProps: BlockProps,
}

Please add support for this, it would be very useful for usage with a readonly editor. It would be even greater if the readonly editor prop value could be used as a default for this :-)

mykhailo-space44 added a commit to mykhailo-space44/draft-js-checkable-list-item that referenced this issue Feb 13, 2024
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 a pull request may close this issue.

1 participant