Skip to content

Commit

Permalink
Prevent overriding 'whiteSpace' styling for NodeView React components (
Browse files Browse the repository at this point in the history
  • Loading branch information
EvitanRelta committed Jun 20, 2022
1 parent d9430e5 commit 8a5b3cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/NodeViewContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const NodeViewContent: React.FC<NodeViewContentProps> = props => {
ref={nodeViewContentRef}
data-node-view-content=""
style={{
...props.style,
whiteSpace: 'pre-wrap',
...props.style,
}}
/>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/NodeViewWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef(
data-node-view-wrapper=""
onDragStart={onDragStart}
style={{
...props.style,
whiteSpace: 'normal',
...props.style,
}}
/>
)
Expand Down

0 comments on commit 8a5b3cf

Please sign in to comment.