design-system
design-system copied to clipboard
Added hook for value change and changed conditions for 'empty' value
What does it do?
Fixes strapi/design-system#658.
Why is it needed?
To correctly handle changes outside of component (when "value" props changes). Display empty field when you get null values as response from strapi
How to test it?
Only testable with some code which changes value outside of component. Can add example with buttons to storybook if requested.
Related issue(s)/PR(s)
- Refs https://github.com/strapi/design-system/issues/658
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
design-system | ✅ Ready (Inspect) | Visit Preview | Aug 9, 2022 at 2:15AM (UTC) |
design-system-website | ✅ Ready (Inspect) | Visit Preview | Aug 9, 2022 at 2:15AM (UTC) |
closing in favour of #773.
Thank you for all the work you put in to this PR.