From 8fc1e5a0e6bd81b797be9fa45976edadf486bc12 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Sat, 4 Mar 2023 09:38:59 +0200
Subject: [PATCH] fix

---
 .../src/MatchingService/components/DropDownComponent.js   | 6 +++---
 .../MultipleChoiceQuestionService.js                      | 8 ++++----
 .../MultipleDropDownService/components/ContainerEditor.js | 2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js b/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js
index 803f7c359..5c47a9695 100644
--- a/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js
+++ b/wax-prosemirror-services/src/MatchingService/components/DropDownComponent.js
@@ -50,7 +50,7 @@ const DropDownMenu = styled.div`
   position: absolute;
   width: 170px;
   max-height: 150px;
-  overflow-y: scroll;
+  overflow-y: auto;
   z-index: 2;
 
   span {
@@ -166,7 +166,7 @@ const DropComponent = ({ getPos, node, view }) => {
           tabIndex="0"
           type="button"
         >
-          <span>Table Options</span> <StyledIcon name="expand" />
+          <span>Select Option</span> <StyledIcon name="expand" />
         </DropDownButton>
         <DropDownMenu isOpen={isOpen} role="menu">
           {node.attrs.options.map((option, index) => {
@@ -187,7 +187,7 @@ const DropComponent = ({ getPos, node, view }) => {
         </DropDownMenu>
       </Wrapper>
     ),
-    [node.attrs.options, selectedOption],
+    [node.attrs.options, selectedOption, isOpen],
   );
 
   return MultipleDropDown;
diff --git a/wax-prosemirror-services/src/MultipleChoiceQuestionService/MultipleChoiceQuestionService.js b/wax-prosemirror-services/src/MultipleChoiceQuestionService/MultipleChoiceQuestionService.js
index 8b36b9924..06e1ef781 100644
--- a/wax-prosemirror-services/src/MultipleChoiceQuestionService/MultipleChoiceQuestionService.js
+++ b/wax-prosemirror-services/src/MultipleChoiceQuestionService/MultipleChoiceQuestionService.js
@@ -16,10 +16,10 @@ import MoveCursorPlugin from './plugins/MoveCursorPlugin';
 
 class MultipleChoiceQuestionService extends Service {
   boot() {
-    this.app.PmPlugins.add(
-      'moveCursorPlugin',
-      MoveCursorPlugin('moveCursorPlugin'),
-    );
+    // this.app.PmPlugins.add(
+    //   'moveCursorPlugin',
+    //   MoveCursorPlugin('moveCursorPlugin'),
+    // );
   }
 
   register() {
diff --git a/wax-prosemirror-services/src/MultipleDropDownService/components/ContainerEditor.js b/wax-prosemirror-services/src/MultipleDropDownService/components/ContainerEditor.js
index 543328588..c84809d0c 100644
--- a/wax-prosemirror-services/src/MultipleDropDownService/components/ContainerEditor.js
+++ b/wax-prosemirror-services/src/MultipleDropDownService/components/ContainerEditor.js
@@ -104,7 +104,7 @@ const ContainerEditor = ({ node, view, getPos }) => {
   const plugins = [keymap(createKeyBindings()), ...app.getPlugins()];
 
   finalPlugins = finalPlugins.concat([...plugins]);
-
+  console.log(finalPlugins);
   useEffect(() => {
     WaxOverlays = ComponentPlugin('waxOverlays');
 
-- 
GitLab