Skip to content

Commit

Permalink
fix(Clause): pass readOnly props to clause to not render icons
Browse files Browse the repository at this point in the history
Signed-off-by: Diana Lease <[email protected]>
  • Loading branch information
DianaLease committed May 15, 2020
1 parent d9936c3 commit 7cfa66a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/cicero-ui/src/lib/ContractEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const ContractEditor = (props) => {
templateUri={element.data.src}
clauseId={element.data.clauseid}
clauseProps={props.clauseProps}
readOnly={props.readOnly}
{...attributes}
>
{children}
Expand Down
1 change: 0 additions & 1 deletion packages/cicero-ui/src/lib/components/Clause/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const ClauseComponent = React.forwardRef((props, ref) => {
contentEditable={false}
suppressContentEditableWarning={true}
style={{ userSelect: 'none' }}

>
{(hoveringHeader && header.length > 54)
&& <S.HeaderToolTipWrapper>
Expand Down

0 comments on commit 7cfa66a

Please sign in to comment.