@seafile/seafile-editor 1.0.30 → 1.0.32

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.
@@ -46,7 +46,7 @@ const MenuDropDown = props => {
46
46
  }, /*#__PURE__*/React.createElement("div", {
47
47
  ref: menuItemRef,
48
48
  id: containerId,
49
- className: classnames(className, 'menu-group-item sf-menu-with-dropdown', {
49
+ className: classnames(className, 'sf-menu-group-item sf-menu-with-dropdown', {
50
50
  'header-popover-showed': isShowDropDown,
51
51
  'header-toggle-disabled': isDisabled
52
52
  }),
@@ -20,13 +20,16 @@ export default function MarkdownViewer(_ref) {
20
20
  } = useMathJax(mathJaxSource);
21
21
  useEffect(() => {
22
22
  if (!isFetching) {
23
+ setIsLoading(true);
23
24
  const richValue = mdStringToSlate(value);
24
25
  beforeRenderCallback && beforeRenderCallback(richValue);
25
26
  setRichValue(richValue);
26
- setIsLoading(false);
27
+ setTimeout(() => {
28
+ setIsLoading(false);
29
+ }, 0);
27
30
  }
28
31
  // eslint-disable-next-line react-hooks/exhaustive-deps
29
- }, [isFetching]);
32
+ }, [isFetching, value]);
30
33
  const props = {
31
34
  isSupportFormula: !!mathJaxSource,
32
35
  value: richValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {