fix: circular reference in the option prop of select
If return newOption, props in newOption will cause circular reference. props of newOption will has props of newOption.
option.props.props.props === option.props // this is true
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/react-component/select/mzvaredn1
✅ Preview: https://select-git-fork-chersquwn-fix-select-option-props.react-component.vercel.app
Codecov Report
Merging #552 into master will not change coverage. The diff coverage is
100.00%.
@@ Coverage Diff @@
## master #552 +/- ##
=======================================
Coverage 99.37% 99.37%
=======================================
Files 20 20
Lines 957 957
Branches 324 324
=======================================
Hits 951 951
Misses 5 5
Partials 1 1
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/utils/valueUtil.ts | 100.00% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update f05d794...98ddb9a. Read the comment docs.