Skip to content

Fix Colorfield Types for controlled clearing of field#2893

Merged
snowystinger merged 3 commits intomainfrom
fix-colorfield-clear-value
Feb 28, 2022
Merged

Fix Colorfield Types for controlled clearing of field#2893
snowystinger merged 3 commits intomainfrom
fix-colorfield-clear-value

Conversation

@snowystinger
Copy link
Member

@snowystinger snowystinger commented Feb 28, 2022

Closes
#2296

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Test in TS strictmode, it shouldn't give an error

<ColorField value={null} />

🧢 Your Project:

@adobe-bot
Copy link

Build successful! 🎉

Copy link
Member

@reidbarber reidbarber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@LFDanLu LFDanLu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally w/ strict config, seems to resolve the issue w/ applying null as the value.

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@snowystinger snowystinger merged commit c630dea into main Feb 28, 2022
@snowystinger snowystinger deleted the fix-colorfield-clear-value branch February 28, 2022 18:46
@holblin holblin mentioned this pull request Mar 7, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants