You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[
{
op: "replace",
path: "/contents",
value: "The updated text from the textarea element"
}
]
Actual:
[
{
op: "replace",
path: "/contents",
value: {
contents: "The updated text from the textarea element"
}
]
If you remove the propName from RIETextArea, it gives an error. Is there some way to strip the { contents: ... } from around the actual data without doing some manual Object.keys() stuff when you want to have multiple fields editable? Of course if there is just one, using eg. updatedText.contents works.
The text was updated successfully, but these errors were encountered:
When using this:
And then creating the payload to be sent to the API:
The JSON that is sent out is not as expected.
Expected:
Actual:
If you remove the
propName
from RIETextArea, it gives an error. Is there some way to strip the{ contents: ... }
from around the actual data without doing some manualObject.keys()
stuff when you want to have multiple fields editable? Of course if there is just one, using eg.updatedText.contents
works.The text was updated successfully, but these errors were encountered: