-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Editable] forwardRef #4082
Comments
Comment from a user (hence a +1 for this idea): A few days ago I had no choice but to implement something very similar to this in my local copy of slate-react in order to implement scroll position save/restore (when you come back to editing a document, I need to restore the scroll position). |
Same issue for us at userhero.io |
No reason, PR is welcome |
Apologies for not contributing much - and thanks for all the great work, but just thought I'd +1 this as this would be super valuable for our startup. |
Do you want to request a feature or report a bug?
Feature
What's the current behavior?
Editable is not able to hold
ref
Slate: 0.60.4
Browser: Chrome / Safari / Firefox / Edge
OS: Mac / Windows / Linux / iOS / Android
What's the expected behavior?
Editable could be able to hold ref with
React.forwardRef
. Since this component is currently using ref internally, ref would have to be patched, but technically this does not pose a problem.If there isn't reason for this limitation in Slate internals, I'll create PR.
The text was updated successfully, but these errors were encountered: