Skip to content

Commit

Permalink
fix(form): fix shouldUpdate no work error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jun 14, 2023
1 parent b732c0f commit ff8bbef
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 66 deletions.
7 changes: 1 addition & 6 deletions packages/card/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.4.16](https://github.com/ant-design/pro-components/compare/@ant-design/pro-card@2.4.15...@ant-design/pro-card@2.4.16) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-card





## [2.4.15](https://github.com/ant-design/pro-components/compare/@ant-design/pro-card@2.4.14...@ant-design/pro-card@2.4.15) (2023-06-12)

**Note:** Version bump only for package @ant-design/pro-card
Expand Down
7 changes: 1 addition & 6 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.5.8](https://github.com/ant-design/pro-components/compare/@ant-design/pro-components@2.5.7...@ant-design/pro-components@2.5.8) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-components





## [2.5.7](https://github.com/ant-design/pro-components/compare/@ant-design/pro-components@2.5.6...@ant-design/pro-components@2.5.7) (2023-06-12)

**Note:** Version bump only for package @ant-design/pro-components
Expand Down
7 changes: 1 addition & 6 deletions packages/descriptions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.3.8](https://github.com/ant-design/pro-components/compare/@ant-design/pro-descriptions@2.3.7...@ant-design/pro-descriptions@2.3.8) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-descriptions





## [2.3.7](https://github.com/ant-design/pro-components/compare/@ant-design/pro-descriptions@2.3.6...@ant-design/pro-descriptions@2.3.7) (2023-06-12)

### Bug Fixes
Expand Down
7 changes: 1 addition & 6 deletions packages/field/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.9.8](https://github.com/ant-design/pro-components/compare/@ant-design/pro-field@2.9.7...@ant-design/pro-field@2.9.8) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-field





## [2.9.7](https://github.com/ant-design/pro-components/compare/@ant-design/pro-field@2.9.6...@ant-design/pro-field@2.9.7) (2023-06-12)

### Bug Fixes
Expand Down
7 changes: 1 addition & 6 deletions packages/form/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.13.8](https://github.com/ant-design/pro-components/compare/@ant-design/pro-form@2.13.7...@ant-design/pro-form@2.13.8) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-form





## [2.13.7](https://github.com/ant-design/pro-components/compare/@ant-design/pro-form@2.13.6...@ant-design/pro-form@2.13.7) (2023-06-12)

### Bug Fixes
Expand Down
12 changes: 3 additions & 9 deletions packages/layout/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [7.14.6](https://github.com/ant-design/pro-components/compare/@ant-design/pro-layout@7.14.5...@ant-design/pro-layout@7.14.6) (2023-06-14)


### Bug Fixes

* **layout:** fix top menu popupmenu bgColor no work error ([fdceeb7](https://github.com/ant-design/pro-components/commit/fdceeb718dbb7d6f967322baaf7f62572838f919))
* **layout:** tootip use menu name ([e7ac6ab](https://github.com/ant-design/pro-components/commit/e7ac6abe44e007a0f089eee367343d98e1ae9251))




- **layout:** fix top menu popupmenu bgColor no work error ([fdceeb7](https://github.com/ant-design/pro-components/commit/fdceeb718dbb7d6f967322baaf7f62572838f919))
- **layout:** tootip use menu name ([e7ac6ab](https://github.com/ant-design/pro-components/commit/e7ac6abe44e007a0f089eee367343d98e1ae9251))

## [7.14.5](https://github.com/ant-design/pro-components/compare/@ant-design/pro-layout@7.14.4...@ant-design/pro-layout@7.14.5) (2023-06-12)

Expand Down
7 changes: 1 addition & 6 deletions packages/list/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.4.8](https://github.com/ant-design/pro-components/compare/@ant-design/pro-list@2.4.7...@ant-design/pro-list@2.4.8) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-list





## [2.4.7](https://github.com/ant-design/pro-components/compare/@ant-design/pro-list@2.4.6...@ant-design/pro-list@2.4.7) (2023-06-12)

**Note:** Version bump only for package @ant-design/pro-list
Expand Down
7 changes: 1 addition & 6 deletions packages/provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.10.4](https://github.com/ant-design/pro-components/compare/@ant-design/pro-provider@2.10.3...@ant-design/pro-provider@2.10.4) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-provider





## [2.10.3](https://github.com/ant-design/pro-components/compare/@ant-design/pro-provider@2.10.2...@ant-design/pro-provider@2.10.3) (2023-06-12)

### Bug Fixes
Expand Down
10 changes: 2 additions & 8 deletions packages/table/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.7.8](https://github.com/ant-design/pro-components/compare/@ant-design/pro-table@3.7.7...@ant-design/pro-table@3.7.8) (2023-06-14)


### Bug Fixes

* **table:** fix key is -1 when rowIndex is bigger to value ([c362ff7](https://github.com/ant-design/pro-components/commit/c362ff7a7053d91c32ea85081559db032a7d9fad))




- **table:** fix key is -1 when rowIndex is bigger to value ([c362ff7](https://github.com/ant-design/pro-components/commit/c362ff7a7053d91c32ea85081559db032a7d9fad))

## [3.7.7](https://github.com/ant-design/pro-components/compare/@ant-design/pro-table@3.7.6...@ant-design/pro-table@3.7.7) (2023-06-12)

Expand Down
7 changes: 1 addition & 6 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.11.6](https://github.com/ant-design/pro-components/compare/@ant-design/pro-utils@2.11.5...@ant-design/pro-utils@2.11.6) (2023-06-14)

**Note:** Version bump only for package @ant-design/pro-utils





## [2.11.5](https://github.com/ant-design/pro-components/compare/@ant-design/pro-utils@2.11.4...@ant-design/pro-utils@2.11.5) (2023-06-12)

**Note:** Version bump only for package @ant-design/pro-utils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const InternalFormItemFunction: React.FC<InternalProps & FormItemProps> = ({
hasFeedback={false}
shouldUpdate={(prev, next) => {
try {
return JSON.stringify(prev) === JSON.stringify(next);
return JSON.stringify(prev) !== JSON.stringify(next);
} catch (error) {
return true;
}
Expand Down

0 comments on commit ff8bbef

Please sign in to comment.