diff --git a/packages/ui-contract-editor/src/lib/components/Formula/index.js b/packages/ui-contract-editor/src/lib/components/Formula/index.js index 0b02e112..3a38bc29 100644 --- a/packages/ui-contract-editor/src/lib/components/Formula/index.js +++ b/packages/ui-contract-editor/src/lib/components/Formula/index.js @@ -71,13 +71,15 @@ const Formula = React.forwardRef((props, ref) => { setFormulaDependents({}); }; - const formulaProps = { - id: data.name, - className: FORMULA, + const wrapperProps = { onMouseEnter: () => handlerIn(), onMouseLeave: () => handlerOut(), - // onClick: () => toggleConditional(conditionalPath), ...attributes, + }; + + const formulaProps = { + id: data.name, + className: FORMULA, ref }; @@ -87,12 +89,11 @@ const Formula = React.forwardRef((props, ref) => { caretTop: 21, caretLeft: 2, tooltipHeight: 1.85, + contentEditable: false }; - const tooltipInstructions = 'FORMULA HERE'; - return ( - + {data.code} diff --git a/packages/ui-contract-editor/src/lib/styles.css b/packages/ui-contract-editor/src/lib/styles.css index 65604f16..a226c190 100644 --- a/packages/ui-contract-editor/src/lib/styles.css +++ b/packages/ui-contract-editor/src/lib/styles.css @@ -39,7 +39,6 @@ a { border: #AF54C4 1px solid; border-radius: 2px; background-color: #fff; - cursor: pointer; } .optional:hover,