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

fix

parent f63e8591
No related branches found
No related tags found
1 merge request!458Hhmi accessibility
...@@ -50,7 +50,7 @@ const DropDownMenu = styled.div` ...@@ -50,7 +50,7 @@ const DropDownMenu = styled.div`
position: absolute; position: absolute;
width: 170px; width: 170px;
max-height: 150px; max-height: 150px;
overflow-y: scroll; overflow-y: auto;
z-index: 2; z-index: 2;
span { span {
...@@ -166,7 +166,7 @@ const DropComponent = ({ getPos, node, view }) => { ...@@ -166,7 +166,7 @@ const DropComponent = ({ getPos, node, view }) => {
tabIndex="0" tabIndex="0"
type="button" type="button"
> >
<span>Table Options</span> <StyledIcon name="expand" /> <span>Select Option</span> <StyledIcon name="expand" />
</DropDownButton> </DropDownButton>
<DropDownMenu isOpen={isOpen} role="menu"> <DropDownMenu isOpen={isOpen} role="menu">
{node.attrs.options.map((option, index) => { {node.attrs.options.map((option, index) => {
...@@ -187,7 +187,7 @@ const DropComponent = ({ getPos, node, view }) => { ...@@ -187,7 +187,7 @@ const DropComponent = ({ getPos, node, view }) => {
</DropDownMenu> </DropDownMenu>
</Wrapper> </Wrapper>
), ),
[node.attrs.options, selectedOption], [node.attrs.options, selectedOption, isOpen],
); );
return MultipleDropDown; return MultipleDropDown;
......
...@@ -16,10 +16,10 @@ import MoveCursorPlugin from './plugins/MoveCursorPlugin'; ...@@ -16,10 +16,10 @@ import MoveCursorPlugin from './plugins/MoveCursorPlugin';
class MultipleChoiceQuestionService extends Service { class MultipleChoiceQuestionService extends Service {
boot() { boot() {
this.app.PmPlugins.add( // this.app.PmPlugins.add(
'moveCursorPlugin', // 'moveCursorPlugin',
MoveCursorPlugin('moveCursorPlugin'), // MoveCursorPlugin('moveCursorPlugin'),
); // );
} }
register() { register() {
......
...@@ -104,7 +104,7 @@ const ContainerEditor = ({ node, view, getPos }) => { ...@@ -104,7 +104,7 @@ const ContainerEditor = ({ node, view, getPos }) => {
const plugins = [keymap(createKeyBindings()), ...app.getPlugins()]; const plugins = [keymap(createKeyBindings()), ...app.getPlugins()];
finalPlugins = finalPlugins.concat([...plugins]); finalPlugins = finalPlugins.concat([...plugins]);
console.log(finalPlugins);
useEffect(() => { useEffect(() => {
WaxOverlays = ComponentPlugin('waxOverlays'); WaxOverlays = ComponentPlugin('waxOverlays');
......
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