-
Notifications
You must be signed in to change notification settings - Fork 239
fix(combobox): remove layout thrash in render #5538
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
Conversation
🦋 Changeset detectedLatest commit: e5abda5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 84 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/combobox/package.json
Outdated
| "@spectrum-web-components/picker-button": "1.6.0", | ||
| "@spectrum-web-components/popover": "1.6.0", | ||
| "@spectrum-web-components/progress-circle": "1.6.0", | ||
| "@spectrum-web-components/reactive-controllers": "1.6.0", |
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 isn't really related to my change, but the precommit hook was failing the linter without this.
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.
Yes the extraneous dependency check found this. This is cool!
029dc01 to
2f6ca61
Compare
f3c9ef8 to
2f6ca61
Compare
Branch previewReview the following VRT differencesWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
If the changes are expected, update the |
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.
🚫 [eslint] <notice/notice> reported by reviewdog 🐶
Missing notice header
Tachometer resultsChromecombobox permalinkbasic-test
light-dom-test permalink
Firefoxcombobox permalinkbasic-test
light-dom-test permalink
|
b4e7408 to
e29da59
Compare
Rajdeepc
left a comment
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! Thanks for doing this.
rubencarvalho
left a comment
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.
Thank you for this contribution! 👍
Description
This change removes a layout thrashing (style invalidation/recalculation) found in the render function of the Combobox component.
Motivation and context
Removes a performance bottleneck.
Related issue(s)
Screenshots (if appropriate)
Before:

After:

Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
Descriptive Test Statement
Descriptive Test Statement
Device review