From cb6da7f5e7cd85529426c4ba05ff6deabd983ee0 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 12 Jan 2024 13:32:45 +0200 Subject: [PATCH] replace with div --- .../MultipleDropDownService/components/DropDownComponent.js | 1 - .../components/MultipleDropDownComponent.js | 2 +- .../schema/multipleDropDownOptionNode.js | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js b/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js index 0d65a4001..5435583a4 100644 --- a/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js +++ b/wax-questions-service/src/MultipleDropDownService/components/DropDownComponent.js @@ -94,7 +94,6 @@ const IconRemove = styled(Icon)` let previousNode = ''; export default ({ setPosition, position }) => { - console.log('here'); const context = useContext(WaxContext); const { activeView, diff --git a/wax-questions-service/src/MultipleDropDownService/components/MultipleDropDownComponent.js b/wax-questions-service/src/MultipleDropDownService/components/MultipleDropDownComponent.js index 3c49a272c..a5515fe38 100644 --- a/wax-questions-service/src/MultipleDropDownService/components/MultipleDropDownComponent.js +++ b/wax-questions-service/src/MultipleDropDownService/components/MultipleDropDownComponent.js @@ -13,7 +13,7 @@ const activeStylesSvg = css` fill: white !important; `; -const StyledIconActionContainer = styled.span` +const StyledIconActionContainer = styled.div` font-variant-numeric: lining-nums proportional-nums; display: inline-block; height: 24px; diff --git a/wax-questions-service/src/MultipleDropDownService/schema/multipleDropDownOptionNode.js b/wax-questions-service/src/MultipleDropDownService/schema/multipleDropDownOptionNode.js index 720450e22..89f5af2a3 100644 --- a/wax-questions-service/src/MultipleDropDownService/schema/multipleDropDownOptionNode.js +++ b/wax-questions-service/src/MultipleDropDownService/schema/multipleDropDownOptionNode.js @@ -11,7 +11,7 @@ const multipleDropDownOptionNode = { atom: true, parseDOM: [ { - tag: 'span.multiple-drop-down-option', + tag: 'div.multiple-drop-down-option', getAttrs(dom) { return { id: dom.getAttribute('id'), @@ -25,7 +25,7 @@ const multipleDropDownOptionNode = { ], toDOM(node) { return [ - 'span', + 'div', { id: node.attrs.id, class: node.attrs.class, -- GitLab