Replies: 1 comment
-
Did you end up finding a solution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
React hook form(RHF) controller gives us ref to attach to input. RHF can focus and scroll to input when is invalid.
Is it possible to add that ref to lexical rich text editor?
I created that behaviour with editor instance using editor.focus and custom ref using scrollRef.current.scrollIntoView. This is separate from RHF. I want to RHF controll that behaviour, is it possible to achive that?
I also have yup validation. Is it possible to validate editor with yup and tell RHF that input is valid or not?
Beta Was this translation helpful? Give feedback.
All reactions