Skip to content

Commit

Permalink
fix: remove css prop when withoutEmotion is true
Browse files Browse the repository at this point in the history
Breaking tests caused by emotion-js/emotion#1530
  • Loading branch information
ifiokjr committed Oct 7, 2019
1 parent 31a1d71 commit d24226a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion @remirror/react/src/components/remirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,13 @@ export class Remirror<GExtension extends AnyExtension = any> extends PureCompone

const { refKey = 'ref', ...config } = options || Object.create(null);
const { sx } = this.context;
const css = sx(this.editorStyles);
const extra = bool(css) ? { css } : {};

return {
[refKey]: this.onRef,
key: this.uid,
css: sx(this.editorStyles),
...extra,
...config,
children: children || this.renderChildren(null),
} as RefKeyRootProps<GRefKey>;
Expand Down

0 comments on commit d24226a

Please sign in to comment.