Skip to content
Snippets Groups Projects
Commit c5b397bb authored by chris's avatar chris
Browse files

temp solution

parent d7df8259
No related branches found
No related tags found
1 merge request!308Answer nodeview
...@@ -41,6 +41,8 @@ export default ({ node, view, getPos }) => { ...@@ -41,6 +41,8 @@ export default ({ node, view, getPos }) => {
const feedBackInput = () => { const feedBackInput = () => {
setFeedBack(feedBackRef.current.value); setFeedBack(feedBackRef.current.value);
/*HACK*/
node.attrs.feedback = feedBackRef.current.value;
}; };
const saveFeedBack = () => { const saveFeedBack = () => {
...@@ -83,7 +85,7 @@ export default ({ node, view, getPos }) => { ...@@ -83,7 +85,7 @@ export default ({ node, view, getPos }) => {
ref={feedBackRef} ref={feedBackRef}
type="text" type="text"
value={feedBack} value={feedBack}
onBlur={saveFeedBack} // onBlur={saveFeedBack}
onFocus={onFocus} onFocus={onFocus}
/> />
</FeedBack> </FeedBack>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment