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

[@mantine/rte] add args for onChange callback #1268

Merged
merged 1 commit into from
Apr 17, 2022

Conversation

Jawell
Copy link
Contributor

@Jawell Jawell commented Apr 16, 2022

Hi! I see that there are not enough args. Can we add them?

@@ -44,10 +45,10 @@ export interface RichTextEditorProps
extends DefaultProps<RichTextEditorStylesNames>,
Omit<React.ComponentPropsWithoutRef<'div'>, 'onChange'> {
/** HTML content, value not forced as quill works in uncontrolled mode */
value: string;
value: string | Delta;
Copy link
Member

Choose a reason for hiding this comment

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

We cannot change value type, it will be breaking. Adding types to onChange is fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But this is input value. This is just extend types which you can provide to RTE component. Also, we leave string type

Copy link
Member

Choose a reason for hiding this comment

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

Ah, yes, that's true, sorry, I was thinking of something else

@rtivital rtivital merged commit 8fc6b98 into mantinedev:master Apr 17, 2022
@rtivital
Copy link
Member

Thanks!

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.

None yet

3 participants