code4romania / taskforce-fe-components

reusable frontend components for taskforce projects
https://taskforce-fe-components.now.sh
Mozilla Public License 2.0
11 stars 34 forks source link

[Refactor]: Bug smash session 1 #165

Closed moonflare closed 4 years ago

moonflare commented 4 years ago

What changed?

ℹī¸ 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 first option.selected = true.

TODO:

Actions (optional)

vercel[bot] commented 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

moonflare commented 4 years ago

~⚠ī¸ Please hold reviews for this one. I need to implement backwards compatibility for the defaultValue changes in the select component.~

moonflare commented 4 years ago

The backwards compatibility and deprecation message for the select options.selected field have been implemented. Ready to be reviewed 👀

moonflare commented 4 years ago

We need to cover an extra use case for the Select component and therefore we need to refactor it from uncontrolled to controlled inputs.