grep-components 2.22.0-GREPF-2893.3 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9235,12 +9235,13 @@ function Editor({ html, label, classes, autoFocus, helperText, showCharCount, al
9235
9235
  },
9236
9236
  };
9237
9237
  const [floatingAnchorElem, setFloatingAnchorElem] = useState(null);
9238
+ const defaultRef = useRef(null);
9238
9239
  const onRef = (_floatingAnchorElem) => {
9239
9240
  if (_floatingAnchorElem !== null) {
9240
9241
  setFloatingAnchorElem(_floatingAnchorElem);
9241
9242
  }
9242
9243
  };
9243
- editorRef = useRef(null);
9244
+ editorRef = editorRef ?? defaultRef;
9244
9245
  const canStyle = allowedStyles === undefined || allowedStyles.length > 0;
9245
9246
  const buttons = !allowedStyles
9246
9247
  ? createDefaultButtons()