Skip to content

Commit 02f9571

Browse files
Merge branch 'main' into git-merge
2 parents 828ed09 + c99e65f commit 02f9571

198 files changed

Lines changed: 1495 additions & 760 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cypress/e2e/data-provider-strapi-v4/all.cy.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,23 @@ describe("data-provider-strapi-v4", () => {
133133

134134
cy.getAntdFilterTrigger(0).click();
135135
cy.get(".ant-select-selector").eq(1).click();
136+
137+
// Wait for dropdown options to be visible and have proper dimensions
138+
cy.get(".ant-select-dropdown").should("be.visible");
139+
cy.get(".ant-select-item-option-content").should(
140+
"have.length.at.least",
141+
1,
142+
);
143+
136144
cy.fixture("categories").then((categories) => {
137145
const category = categories[0];
138146

147+
cy.get(".ant-select-item-option-content")
148+
.contains(category.title)
149+
.should("be.visible")
150+
.should("have.css", "width")
151+
.and("not.equal", "0px");
152+
139153
cy.get(".ant-select-item-option-content")
140154
.contains(category.title)
141155
.click();

cypress/e2e/table-material-ui-cursor-pagination/all.cy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ describe("table-material-ui-cursor-pagination", () => {
88

99
it("should work with pagination", () => {
1010
cy.getMaterialUILoadingCircular().should("not.exist");
11+
cy.get(".MuiDataGrid-root").should("be.visible");
12+
cy.get(".MuiDataGrid-row").should("have.length.at.least", 1);
1113

1214
cy.intercept({
1315
url: "https://api.github.com/repos/refinedev/refine/commits*",
@@ -16,6 +18,7 @@ describe("table-material-ui-cursor-pagination", () => {
1618
},
1719
}).as("getSecondPageCommits");
1820

21+
cy.get("[title='Go to next page']").should("not.be.disabled");
1922
cy.get("[title='Go to next page']").click();
2023

2124
cy.url().should("include", "current=2");
@@ -29,6 +32,8 @@ describe("table-material-ui-cursor-pagination", () => {
2932
},
3033
}).as("getFirstPageCommits");
3134

35+
// Wait for the previous page button to be enabled before clicking
36+
cy.get("[title='Go to previous page']").should("not.be.disabled");
3237
cy.get("[title='Go to previous page']").click();
3338

3439
cy.url().should("include", "current=1");

documentation/docs/packages/react-hook-form/use-modal-form/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,18 @@ const modalForm = useModalForm({
663663
});
664664
```
665665

666+
### autoResetFormWhenClose
667+
668+
When `true`, form will be reset when modal closes. Defaults to `true`.
669+
670+
```tsx
671+
const modalForm = useModalForm({
672+
modalProps: {
673+
autoResetFormWhenClose: false,
674+
},
675+
});
676+
```
677+
666678
### warnWhenUnsavedChanges
667679

668680
When you have unsaved changes and try to leave the current page, Refine shows a confirmation modal box. To activate this feature. By default, this feature is disabled.

documentation/docs/ui-integrations/ant-design/hooks/use-modal-form/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,16 @@ const modalForm = useModalForm({
475475
});
476476
```
477477

478+
### autoResetFormWhenClose
479+
480+
`autoResetFormWhenClose` will reset the form when modal closes. It is `true` by default.
481+
482+
```tsx
483+
const modalForm = useModalForm({
484+
autoResetFormWhenClose: false,
485+
});
486+
```
487+
478488
### warnWhenUnsavedChanges
479489

480490
When set to true, `warnWhenUnsavedChanges` shows a warning when the user tries to leave the page with unsaved changes. It is used to prevent the user from accidentally leaving the page. It is `false` by default

documentation/docs/ui-integrations/mantine/hooks/use-modal-form/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,18 @@ const modalForm = useModalForm({
793793
});
794794
```
795795

796+
### autoResetFormWhenClose
797+
798+
When `true`, form will be reset when modal closes. It is `true` by default.
799+
800+
```tsx
801+
const modalForm = useModalForm({
802+
modalProps: {
803+
autoResetFormWhenClose: false,
804+
},
805+
});
806+
```
807+
796808
### syncWithLocation
797809

798810
When `true`, the modals visibility state and the `id` of the record will be synced with the URL. It is `false` by default.

examples/access-control-casbin/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
]
2323
},
2424
"dependencies": {
25-
"@refinedev/antd": "^5.46.1",
25+
"@refinedev/antd": "^5.46.2",
2626
"@refinedev/cli": "^2.16.46",
27-
"@refinedev/core": "^4.57.9",
27+
"@refinedev/core": "^4.57.10",
2828
"@refinedev/react-router": "^1.0.1",
2929
"@refinedev/simple-rest": "^5.0.10",
3030
"@uiw/react-md-editor": "^3.19.5",

examples/access-control-cerbos/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
},
2424
"dependencies": {
2525
"@cerbos/http": "^0.6.0",
26-
"@refinedev/antd": "^5.46.1",
26+
"@refinedev/antd": "^5.46.2",
2727
"@refinedev/cli": "^2.16.46",
28-
"@refinedev/core": "^4.57.9",
28+
"@refinedev/core": "^4.57.10",
2929
"@refinedev/react-router": "^1.0.1",
3030
"@refinedev/simple-rest": "^5.0.10",
3131
"@uiw/react-md-editor": "^3.19.5",

examples/access-control-permify/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
]
2323
},
2424
"dependencies": {
25-
"@refinedev/antd": "^5.46.1",
25+
"@refinedev/antd": "^5.46.2",
2626
"@refinedev/cli": "^2.16.46",
27-
"@refinedev/core": "^4.57.9",
27+
"@refinedev/core": "^4.57.10",
2828
"@refinedev/react-router": "^1.0.1",
2929
"@refinedev/simple-rest": "^5.0.10",
3030
"@uiw/react-md-editor": "^3.19.5",

examples/app-crm-minimal/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"@dnd-kit/core": "^6.0.8",
2020
"@dnd-kit/modifiers": "^6.0.1",
2121
"@dnd-kit/sortable": "^7.0.2",
22-
"@refinedev/antd": "^5.46.1",
22+
"@refinedev/antd": "^5.46.2",
2323
"@refinedev/cli": "^2.16.46",
24-
"@refinedev/core": "^4.57.9",
24+
"@refinedev/core": "^4.57.10",
2525
"@refinedev/devtools": "^1.2.16",
2626
"@refinedev/nestjs-query": "^1.3.5",
2727
"@refinedev/react-router": "^1.0.1",

examples/audit-log-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"dependencies": {
1313
"@refinedev/cli": "^2.16.46",
14-
"@refinedev/core": "^4.57.9",
15-
"@refinedev/react-hook-form": "^4.10.1",
14+
"@refinedev/core": "^4.57.10",
15+
"@refinedev/react-hook-form": "^4.10.2",
1616
"@refinedev/react-router": "^1.0.1",
1717
"@refinedev/simple-rest": "^5.0.10",
1818
"react": "^18.0.0",

0 commit comments

Comments
 (0)