inokawa / rich-textarea

A small customizable textarea for React to colorize, highlight, decorate texts, offer autocomplete and much more.
https://inokawa.github.io/rich-textarea/
MIT License
310 stars 8 forks source link

[BUG]: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? #156

Closed A1X5H04 closed 1 month ago

A1X5H04 commented 2 months ago

Describe the bug This is a internal bug from library that is related to refs, here's an error:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? 

Check the render method of 'SlotClone'.
    at RichTextArea (...)

To Reproduce Create some components from the demo, mentions etc

Expected behavior The warning should be resolved

Platform:

Additional context Not available

inokawa commented 2 months ago

Could you make a minimal reproduction? It's not reproduced.