Skip to content
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: Menu should not steal focus on re-render #27688

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

ling1726
Copy link
Member

Follow up from #27414. The focusing effect should not re-run if the value of firstMount changes.

Follow up from microsoft#27414. The focusing effect should not re-run if the
value of `firstMount` changes.
@ling1726 ling1726 marked this pull request as ready for review April 25, 2023 13:58
@ling1726 ling1726 requested a review from a team as a code owner April 25, 2023 13:58
@github-actions github-actions bot added this to the April Project Cycle Q2 2023 milestone Apr 25, 2023
@ling1726 ling1726 enabled auto-merge (squash) April 25, 2023 14:02
@codesandbox-ci
Copy link

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 ecf6016:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 607 628 5000
Button mount 332 334 5000
Field mount 1125 1139 5000
FluentProvider mount 816 826 5000
FluentProviderWithTheme mount 119 108 10
FluentProviderWithTheme virtual-rerender 84 98 10
FluentProviderWithTheme virtual-rerender-with-unmount 107 91 10
InfoButton mount 13 25 5000
MakeStyles mount 974 1075 50000
Persona mount 1895 1777 5000
SpinButton mount 1396 1585 5000

@size-auditor
Copy link

size-auditor bot commented Apr 25, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 3a6bbb0ca32a62a60195d248074236709d7e2b2d (build)

@fabricteam
Copy link
Collaborator

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
204.5 kB
57.183 kB
204.498 kB
57.184 kB
-2 B
1 B
react-menu
Menu (including children components)
128.361 kB
39.234 kB
128.359 kB
39.232 kB
-2 B
-2 B
react-menu
Menu (including selectable components)
131.345 kB
39.749 kB
131.343 kB
39.747 kB
-2 B
-2 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
65.31 kB
17.931 kB
react-components
react-components: FluentProvider & webLightTheme
36.086 kB
11.9 kB
react-portal-compat
PortalCompatProvider
6.446 kB
2.186 kB
🤖 This report was generated against 3a6bbb0ca32a62a60195d248074236709d7e2b2d

@ling1726 ling1726 merged commit 39a57b2 into microsoft:master Apr 25, 2023
@fabricteam
Copy link
Collaborator

🕵 fluentuiv9 No visual regressions between this PR and main

marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Apr 27, 2023
* master:
  chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707)
  chore: migrate to NodeJS v16 (microsoft#27711)
  remove react-avatar-context package (microsoft#27709)
  test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669)
  chore: Add caret to react-datepicker-compat dependencies (microsoft#27671)
  test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661)
  chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702)
  chore: enforce files naming to use .styles.ts (microsoft#27698)
  feat: adds lazy loading example (microsoft#27587)
  feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025)
  chore(react-tree): updates useOpenItemsState internals (microsoft#27697)
  feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668)
  test: use `isolatedModules` for all ts-jest configs to lower memory footprint on CI (microsoft#27670)
  chore: bump @griffel/eslint-plugin & enable @griffel/hook-naming (microsoft#27687)
  feat(react-tree): makes useFlatTree generic (microsoft#27682)
  Enable export to codepen for charting library (microsoft#27539)
  Overflow: added useOverflowCount to exports (microsoft#27678)
  fix: Menu should not steal focus on re-render (microsoft#27688)
  feat(react-conformance): add new TS config api to be able to specify configName and configDir (microsoft#27664)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants