Skip to content

Commit

Permalink
Prevent overriding 'whiteSpace' styling for NodeView React components
Browse files Browse the repository at this point in the history
Fixes #2883
  • Loading branch information
EvitanRelta committed Jun 15, 2022
1 parent fa8c4ca commit 8e27019
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 8e27019

Please sign in to comment.