idux icon indicating copy to clipboard operation
idux copied to clipboard

fix(cdk:utils): fix useControlledProp defaultValue behavior

Open sallerli1 opened this issue 2 years ago • 2 comments

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

sallerli1 avatar Aug 25 '22 07:08 sallerli1

This preview will be available after the AzureCI is passed.

idux-bot[bot] avatar Aug 25 '22 07:08 idux-bot[bot]

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.

codecov[bot] avatar Aug 25 '22 08:08 codecov[bot]