Replies: 1 comment
-
Hi! Can you provide us some code by any chance? |
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
-
Hi,
I've been building a custom component wrapping the LexicalComposer component which can be found online.
I'm using this lexical composer in-order to allow users to write description in some richText format.
I am using formik and using does not serve me as the values from formik does not work as I expect because (i guess) the LexicalComposer is not based on html .
To make it work I've handled it manually by listening to onChange events and update the field myself
i.e something like:
onChange={(event) => {setFieldValue("description", event.target.value)}}
One of the functionalities on this page is when the user decides not to save the changes, hitting 'cancel' reverts the form to the initial form values using 'resetForm()' function.
This does not work for me anymore for some reasons:
By async action I mean that the definition of my 'cancel' button is an onClick that I register an async function, tried to remove the async and it did not solve the issue.
I'm using formik v2.+.+
Would appreciate any assistance 🥲
Beta Was this translation helpful? Give feedback.
All reactions