-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Wrong propTypes for SearchFieldAdvanced.icons #3026
fix: Wrong propTypes for SearchFieldAdvanced.icons #3026
Conversation
Thanks for the pull request, @bradenmacdonald! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
✅ Deploy Preview for paragon-openedx ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
0f20f41
to
4378e8c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
☔ View full report in Codecov by Sentry. |
@bradenmacdonald 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
🎉 This PR is included in version 22.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks @brian-smith-tcril ! |
Description
Bug: Merely using the default
<SearchField />
in an MFE without setting the optionalicons
property results in the following console warning:From the
SearchField
docs, you can easily verify that theicons
prop takeselementType
values, notelement
values by trying these two:✅ Works: pass an element type (or leave
icons
unspecified)🛑 Doesn't work: pass an actual
element
:I don't know why this warning isn't showing up on the docs site console. Perhaps warnings are suppressed there?
Deploy Preview
This doesn't change the implementation, just the runtime console warning.
Merge Checklist
example
app?wittjeff
andadamstankiewicz
as reviewers on this PR.Post-merge Checklist