-
Notifications
You must be signed in to change notification settings - Fork 44
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 render stability of IconPicker grid and update usage of deprecated Dropdown property #230
Conversation
Size Change: +78 B (0%) Total Size: 52.3 kB
|
@benlk In order to make it easier for you to test I published this as an alpha version to npm. You can install it like so: npm i @10up/block-components@1.15.11-alpha.2 |
@Antonio-Laguna just pinging you here to ensure you saw this. I will be out for the next two weeks starting tomorrow but I don't want this to stall out during that time :) (The failing e2e tests are unrelated and as far as I know @Sidsector9 is looking at them) |
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.
LGTM
@fabiankaegy thanks for pinging, I did see it but somehow it got missed! |
Tested locally with
|
@benlk if you review we can get this merged and released as |
Approved. |
Correction: approved with suggestion for extra work. |
Description of the Change
Fix how the IconGrid gets rendered inside the Icon Picker in order to prevent unwanted rerenders of the component. This should fix the issue described in #229. Whilst working in the codebase I also updated the usage of the deprecated
placement
prop of the Dropdown component (#226).Closes #226, #229
How to test the Change
Expected Result:
The icons should not revert to a Spinner state when the state changes. Also, the browser console should not show any warnings.
Changelog Entry
Credits
Props @fabiankaegy, @benlk
Checklist: