idux
idux copied to clipboard
fix(cdk:utils): fix useControlledProp defaultValue behavior
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines
- [x] Tests for the changes have been added/updated or not needed
- [x] Docs and demo have been added/updated or not needed
What is the current behavior?
What is the new behavior?
修改 useControlledProp 方法 defaultValue 行为,即提供defaultValue时state不会是undefined
Other information
This preview will be available after the AzureCI is passed.
Codecov Report
Merging #1090 (dab1567) into main (1fe3d76) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## main #1090 +/- ##
=======================================
Coverage 96.92% 96.92%
=======================================
Files 317 317
Lines 30403 30403
Branches 2790 2790
=======================================
Hits 29468 29468
Misses 935 935
Impacted Files | Coverage Δ | |
---|---|---|
packages/cdk/utils/src/composable.ts | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.