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/tiptap]: add forward ref to mantine tip tap editor #3068

Merged
merged 1 commit into from Nov 28, 2022

Conversation

adarshaacharya
Copy link
Contributor

  • forward ref to avoid ref warning in mantine tip tap editor

@@ -50,7 +50,7 @@ const defaultProps: Partial<RichTextEditorProps> = {
withTypographyStyles: true,
};

export function RichTextEditor(props: RichTextEditorProps) {
export const RichTextEditor = forwardRef<HTMLInputElement, RichTextEditorProps>((props, ref) => {
Copy link
Member

Choose a reason for hiding this comment

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

ref type is incorrect, it is div element, not input

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected, thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks adarsha

@rtivital rtivital merged commit 470dca2 into mantinedev:master Nov 28, 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