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

fix focus

parent 5eb761ae
No related branches found
No related tags found
1 merge request!396add inputs
......@@ -131,6 +131,11 @@ export default ({ node, view, getPos }) => {
Fragment.empty,
);
main.dispatch(main.state.tr.replaceSelectionWith(answerOption));
// create Empty Paragraph
setTimeout(() => {
helpers.createEmptyParagraph(context, newAnswerId);
}, 120);
}
}
});
......
......@@ -130,6 +130,11 @@ export default ({ node, view, getPos }) => {
Fragment.empty,
);
main.dispatch(main.state.tr.replaceSelectionWith(answerOption));
// create Empty Paragraph
setTimeout(() => {
helpers.createEmptyParagraph(context, newAnswerId);
}, 120);
}
}
});
......
......@@ -130,6 +130,11 @@ export default ({ node, view, getPos }) => {
Fragment.empty,
);
main.dispatch(main.state.tr.replaceSelectionWith(answerOption));
// create Empty Paragraph
setTimeout(() => {
helpers.createEmptyParagraph(context, newAnswerId);
}, 120);
}
}
});
......
......@@ -10,6 +10,7 @@ import { Icon } from 'wax-prosemirror-components';
import EditorComponent from './EditorComponent';
import SwitchComponent from './SwitchComponent';
import FeedbackComponent from './FeedbackComponent';
import helpers from '../helpers/helpers';
const Wrapper = styled.div`
display: flex;
......@@ -129,6 +130,10 @@ export default ({ node, view, getPos }) => {
Fragment.empty,
);
main.dispatch(main.state.tr.replaceSelectionWith(answerOption));
// create Empty Paragraph
setTimeout(() => {
helpers.createEmptyParagraph(context, newAnswerId);
}, 120);
}
}
});
......
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