-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add mountNode prop to combos #28661
Add mountNode prop to combos #28661
Conversation
packages/react-components/react-combobox/src/components/Combobox/renderCombobox.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-combobox/src/components/Dropdown/renderDropdown.tsx
Outdated
Show resolved
Hide resolved
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 599 | 604 | 5000 | |
Button | mount | 291 | 289 | 5000 | |
Field | mount | 1061 | 1043 | 5000 | |
FluentProvider | mount | 630 | 654 | 5000 | |
FluentProviderWithTheme | mount | 76 | 78 | 10 | |
FluentProviderWithTheme | virtual-rerender | 67 | 66 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 66 | 76 | 10 | |
InfoButton | mount | 11 | 13 | 5000 | |
MakeStyles | mount | 860 | 847 | 50000 | |
Persona | mount | 1667 | 1578 | 5000 | |
SpinButton | mount | 1367 | 1327 | 5000 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit c0726d2:
|
📊 Bundle size reportUnchanged fixtures
|
🕵 fluentuiv9 No visual regressions between this PR and main |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: bdbf3ae799e368080db7af64f385f5c35c4c8fdf (build) |
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.
Thanks so much for making this!
packages/react-components/react-combobox/src/components/Combobox/useCombobox.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-combobox/src/components/Combobox/Combobox.types.ts
Outdated
Show resolved
Hide resolved
Can we be consistent with other components and expose fluentui/packages/react-components/react-tooltip/src/components/Tooltip/Tooltip.types.ts Line 38 in 9958fee
fluentui/packages/react-components/react-popover/src/components/Popover/Popover.types.ts Line 17 in 9958fee
|
That was my original plan, then others suggested making it a slot. LOL. I will update to follow the precedent. |
* master: (37 commits) release (microsoft#28696) Fixing re-render issue for all charts when empty (microsoft#28321) feat(FluentProvider): emit errors on duplicate IDs (microsoft#28670) applying package updates fix(react-positioning): autoSize causing position update to reach maximum (microsoft#28689) fix(react-tags-preview): fix InteractionTag hover styles (microsoft#28686) Accordion: export AccordionHeaderProvider (microsoft#28542) feat(react-shared-contexts): add AnnounceContext (microsoft#28654) Added VR tests for Breadcrumb (microsoft#28653) fix(react-menu): use outline for menuItem focus ring (microsoft#28685) [Bug]: Tree, vertical spacing of branches and children is inconsistent (microsoft#28681) feaTt(react-tree): adds openItems and checkedItems to tree callback data (microsoft#28669) applying package updates Add mountNode prop to combos (microsoft#28661) react-tags-preview: add more vr test (microsoft#28582) chore: migrate to nx 16.1.4 (microsoft#28583) applying package updates chore: improves internal headless signature (microsoft#28651) fix: remove margin from icon when ToolbarButton is vertical (microsoft#28658) applying package updates ...
Issue
Allows callers to change the mountNode of the portal used to display the dropdown part for ComboBox and Dropdown.
Fixes #28625
Changes
I created a storybook example to demonstrate it working. I don't think this makes a good story to check in for combobox though.
Combobox.mount.node.mov