design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Added hook for value change and changed conditions for 'empty' value

Open not-vainglorious opened this issue 1 year ago • 1 comments

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

not-vainglorious avatar Jul 09 '22 23:07 not-vainglorious

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)

vercel[bot] avatar Jul 09 '22 23:07 vercel[bot]

closing in favour of #773.

Thank you for all the work you put in to this PR.

joshuaellis avatar Nov 16 '22 17:11 joshuaellis