@uxf/wysiwyg 10.0.1 → 10.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/wysiwyg",
3
- "version": "10.0.1",
3
+ "version": "10.0.3",
4
4
  "description": "UXF Wysiwyg editor",
5
5
  "author": "Robin Dvorak <dvorak@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/wysiwyg",
@@ -28,7 +28,7 @@
28
28
  "@udecode/plate-select": "20.7.2",
29
29
  "@udecode/plate-trailing-block": "20.7.2",
30
30
  "@uxf/core": "10.0.0",
31
- "@uxf/ui": "10.0.1",
31
+ "@uxf/ui": "10.0.2",
32
32
  "slate": "0.90.0",
33
33
  "slate-history": "0.86.0",
34
34
  "slate-hyperscript": "0.77.0",
@@ -80,6 +80,7 @@ const Insert = () => {
80
80
  useInsertLinkFormAutoFocus();
81
81
  const onSubmit = (e) => {
82
82
  e.preventDefault();
83
+ e.stopPropagation();
83
84
  setIsSubmitted(true);
84
85
  (0, plate_link_1.submitFloatingLink)(editor);
85
86
  };
@@ -88,7 +89,11 @@ const Insert = () => {
88
89
  return (react_1.default.createElement("div", { className: INSERT_CLASS_NAME },
89
90
  react_1.default.createElement("form", { className: `${INSERT_CLASS_NAME}__form`, id: "insert-link-form", onSubmit: onSubmit },
90
91
  react_1.default.createElement("div", { className: `${INSERT_CLASS_NAME}__form-inputs` },
91
- react_1.default.createElement(text_input_1.TextInput, { className: `${INSERT_CLASS_NAME}__first-input`, hiddenLabel: true, isInvalid: emptyUrl || invalidUrl, isRequired: true, helperText: emptyUrl
92
+ react_1.default.createElement(text_input_1.TextInput
93
+ /* eslint-disable-next-line jsx-a11y/no-autofocus */
94
+ , {
95
+ /* eslint-disable-next-line jsx-a11y/no-autofocus */
96
+ autoFocus: true, className: `${INSERT_CLASS_NAME}__first-input`, hiddenLabel: true, isInvalid: emptyUrl || invalidUrl, isRequired: true, helperText: emptyUrl
92
97
  ? t("wysiwyg:plugins.link.url-address.required")
93
98
  : invalidUrl
94
99
  ? t("wysiwyg:plugins.link.url-address.invalid")