Closed moonflare closed 4 years ago
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/code4romania/taskforce-fe-components/ee6d7ixkw â Preview: https://taskforce-fe-components-git-dan-bug-smash-session-1.code4romania.now.sh
~â ī¸ Please hold reviews for this one. I need to implement backwards compatibility for the defaultValue
changes in the select
component.~
The backwards compatibility and deprecation message for the select
options.selected
field have been implemented. Ready to be reviewed đ
We need to cover an extra use case for the Select
component and therefore we need to refactor it from uncontrolled to controlled inputs.
What changed?
onClick
callback optional for thebutton
warning
type for thebutton
searchDropdown
(We can navigate with tab, open the dropdown and select an item by pressing Enter)defaultValue
selection and fixes some type errors for theSelect
component and adds deprecation message for the usage ofoptions.selected
field.Select
input from uncontrolled to controlled.input
âšī¸ Please note that there is a glitch for the deprecated
option.selected
version where the default value will be the first element in the options, and at the next render the default value is updated manually with the firstoption.selected = true
.TODO:
Actions (optional)
../src/index.js
~