Skip to content

Commit

Permalink
Update ReactNodeViewRenderer.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-liubushkin authored and bdbch committed May 20, 2022
1 parent 00cd74e commit 2191344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/ReactNodeViewRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor, ReactNodeV
as = this.options.as
}

const className = this.options.className ? ` ${this.options.className}` : ''
const { className = '' } = this.options

this.renderer = new ReactRenderer(ReactNodeViewProvider, {
editor: this.editor,
props,
as,
className: `node-${this.node.type.name}` + className,
className: `node-${this.node.type.name} ${className}`.trim(),
})
}

Expand Down

0 comments on commit 2191344

Please sign in to comment.