-
Notifications
You must be signed in to change notification settings - Fork 364
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: [M3-8696] - Autocomplete renderOption prop console warning #11140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like the simplest approach - thanks for doing this 🙌
Coverage Report: ❌ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a concern about the theme change. Verified modified components continue to work as expected.
Cloud Manager E2E Run #6720
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #6720
|
Run duration | 26m 59s |
Commit |
2145585478: fix: [M3-8696] - Autocomplete renderOption prop console warning (#11140)
|
Committer | Alban Bailly |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
2
|
Pending |
2
|
Skipped |
0
|
Passing |
438
|
View all changes introduced in this branch ↗︎ |
Description 📝
Fixes this annoying little bugger when overriding
renderOption
inAutoComplete
.It was already fixed when not overriding in https://github.com/linode/manager/pull/11041/files, alas we needed a fix when passing
renderOption
. I did not find it possible to do it from the component so we need to remember to do it every time we declarerenderOptions
. Should be straight forward when implementing a new Autocomplete when checking the console.Changes 🔄
ImageSelect
is handled here, not in this PRHow to test 🧪
Verification steps
(How to verify changes)
<Autocomplete />
withrenderOption
modified in this PR (except for ImageSelect - see description) don't display the console error when being openedAs an Author I have considered 🤔
Check all that apply