@pie-lib/math-toolbar 4.0.0-next.50 → 4.0.0-next.53

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.
@@ -33,6 +33,7 @@ export declare class EditorAndPad extends React.Component {
33
33
  };
34
34
  constructor(props: any);
35
35
  componentDidMount(): void;
36
+ componentWillUnmount(): void;
36
37
  onClick: any;
37
38
  updateDisable: any;
38
39
  onAnswerBlockClick: any;
@@ -184,7 +184,12 @@ var { commonMqFontStyles: _, commonMqKeyboardStyles: v, longdivStyles: y, supsub
184
184
  };
185
185
  }
186
186
  componentDidMount() {
187
- this.input && this.props.autoFocus && setTimeout(() => this.input.focus(), 0);
187
+ this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
188
+ this.focusTimeout = void 0, this.input?.focus();
189
+ }, 0));
190
+ }
191
+ componentWillUnmount() {
192
+ this.focusTimeout && clearTimeout(this.focusTimeout);
188
193
  }
189
194
  onClick = (e) => {
190
195
  let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = M(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/math-toolbar",
3
- "version": "4.0.0-next.50",
3
+ "version": "4.0.0-next.53",
4
4
  "description": "Math toolbar for editing math equations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,11 +12,11 @@
12
12
  "@emotion/styled": "^11.14.1",
13
13
  "@mui/icons-material": "^7.3.4",
14
14
  "@mui/material": "^7.3.4",
15
- "@pie-lib/math-input": "9.0.0-next.15",
16
- "@pie-lib/render-ui": "6.2.0-next.49",
15
+ "@pie-lib/math-input": "9.0.0-next.17",
16
+ "@pie-lib/render-ui": "6.2.0-next.51",
17
17
  "debug": "^4.1.1",
18
18
  "prop-types": "^15.7.2",
19
- "@pie-element/shared-lodash": "0.1.1-next.2"
19
+ "@pie-element/shared-lodash": "0.1.1-next.3"
20
20
  },
21
21
  "type": "module",
22
22
  "main": "./dist/index.js",