@gravity-ui/dynamic-forms 5.10.0 → 5.10.1

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.
@@ -15,7 +15,7 @@ const MonacoInputDialog = ({ name, value, title, visible, language, onChange, on
15
15
  const handleClose = react_1.default.useCallback(() => {
16
16
  onChange(value);
17
17
  onClose();
18
- }, [onChange, onClose]);
18
+ }, [onChange, onClose, value]);
19
19
  const options = (0, useMonacoOptions_1.useMonacoOptions)(fontSize, false);
20
20
  if (!MonacoEditor) {
21
21
  return null;
@@ -12,7 +12,7 @@ export const MonacoInputDialog = ({ name, value, title, visible, language, onCha
12
12
  const handleClose = React.useCallback(() => {
13
13
  onChange(value);
14
14
  onClose();
15
- }, [onChange, onClose]);
15
+ }, [onChange, onClose, value]);
16
16
  const options = useMonacoOptions(fontSize, false);
17
17
  if (!MonacoEditor) {
18
18
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/dynamic-forms",
3
- "version": "5.10.0",
3
+ "version": "5.10.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/cjs/index.js",