docusaurus-theme-openapi-docs 4.3.2 → 4.3.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.
|
@@ -103,7 +103,8 @@ function ParamArrayFormItem({ param }) {
|
|
|
103
103
|
formState: { errors },
|
|
104
104
|
} = (0, react_hook_form_1.useFormContext)();
|
|
105
105
|
const showErrorMessage = errors?.paramArray?.message;
|
|
106
|
-
function handleAddItem() {
|
|
106
|
+
function handleAddItem(e) {
|
|
107
|
+
e.preventDefault(); // prevent form from submitting
|
|
107
108
|
setItems((i) => [
|
|
108
109
|
...i,
|
|
109
110
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-theme-openapi-docs",
|
|
3
3
|
"description": "OpenAPI theme for Docusaurus.",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"openapi",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/file-saver": "^2.0.5",
|
|
35
35
|
"@types/lodash": "^4.14.176",
|
|
36
36
|
"concurrently": "^5.2.0",
|
|
37
|
-
"docusaurus-plugin-openapi-docs": "^4.3.
|
|
37
|
+
"docusaurus-plugin-openapi-docs": "^4.3.3",
|
|
38
38
|
"docusaurus-plugin-sass": "^0.2.3",
|
|
39
39
|
"eslint-plugin-prettier": "^5.0.1"
|
|
40
40
|
},
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": ">=14"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "4ec42960414d640952c235afc3757fd3245fb2d2"
|
|
79
79
|
}
|
|
@@ -56,7 +56,8 @@ export default function ParamArrayFormItem({ param }: ParamProps) {
|
|
|
56
56
|
|
|
57
57
|
const showErrorMessage = errors?.paramArray?.message;
|
|
58
58
|
|
|
59
|
-
function handleAddItem() {
|
|
59
|
+
function handleAddItem(e: any) {
|
|
60
|
+
e.preventDefault(); // prevent form from submitting
|
|
60
61
|
setItems((i) => [
|
|
61
62
|
...i,
|
|
62
63
|
{
|