diff --git a/demos/src/Examples/Community/React/suggestion.js b/demos/src/Examples/Community/React/suggestion.js index a618d552873..5c894ec3fa5 100644 --- a/demos/src/Examples/Community/React/suggestion.js +++ b/demos/src/Examples/Community/React/suggestion.js @@ -20,15 +20,12 @@ export default { if (!props.clientRect) { return } + reactRenderer = new ReactRenderer(MentionList, { props, editor: props.editor, }) - if (!props.clientRect) { - return - } - popup = tippy('body', { getReferenceClientRect: props.clientRect, appendTo: () => document.body,