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

bugfix: moves handleBackdropClick from defaultProps to an override #28579

Conversation

bsunderhus
Copy link
Contributor

@bsunderhus bsunderhus commented Jul 19, 2023

Previous Behavior

Event listener that ensured backdrop functionality on click event was being added as a defaultProp, which could be overridden by external user by passing backdrop={{onClick}}, breaking backdrop behaviour

New Behavior

  1. Makes handleBackdropClick an override method instead of a defaultProp.

Related Issue(s)

  • Fixes #

@github-actions github-actions bot added this to the July Project Cycle Q3 2023 milestone Jul 19, 2023
@bsunderhus bsunderhus self-assigned this Jul 19, 2023
@bsunderhus bsunderhus marked this pull request as ready for review July 19, 2023 13:44
@bsunderhus bsunderhus requested a review from a team as a code owner July 19, 2023 13:44
@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 579 599 5000
Button mount 290 288 5000
Field mount 1058 1033 5000
FluentProvider mount 657 632 5000
FluentProviderWithTheme mount 78 81 10
FluentProviderWithTheme virtual-rerender 69 76 10
FluentProviderWithTheme virtual-rerender-with-unmount 73 75 10
InfoButton mount 9 15 5000
MakeStyles mount 822 852 50000
Persona mount 1635 1635 5000
SpinButton mount 1304 1286 5000

@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 65059fb:

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

@fabricteam
Copy link
Collaborator

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
65.175 kB
17.915 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
210.68 kB
58.781 kB
react-components
react-components: FluentProvider & webLightTheme
36.409 kB
12.003 kB
react-dialog
Dialog (including children components)
92.736 kB
27.579 kB
react-portal-compat
PortalCompatProvider
6.473 kB
2.196 kB
🤖 This report was generated against c3819e59d69a017c61f39d617b84a0fff6cd9fff

@size-auditor
Copy link

size-auditor bot commented Jul 19, 2023

Asset size changes

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

Baseline commit: c3819e59d69a017c61f39d617b84a0fff6cd9fff (build)

@fabricteam
Copy link
Collaborator

🕵 fluentuiv9 No visual regressions between this PR and main

@bsunderhus bsunderhus merged commit 21d69b7 into microsoft:master Jul 20, 2023
21 checks passed
@bsunderhus bsunderhus deleted the react-dialog/bugfix--handleBackdropClick-as-override branch July 20, 2023 11:51
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Jul 25, 2023
* master: (32 commits)
  chore: remove @fluentui/bundle-size (microsoft#28601)
  Breadcrumb UI adjustments (microsoft#28578)
  feat(tools): re-generate react-components.api.md when preparing 1st stable release (microsoft#28561)
  perf(tools): make dependency-mismatch execution 90% faster and ignore */>=9.0.0-alpha versions (microsoft#28597)
  Table/DataGrid: keyboard resizing improvements (microsoft#28493)
  docs(react-tooltip): Add info icon + tooltip story to Tooltip stories (microsoft#28611)
  chore: Updating @fluentui/react-icons to version 2.0.207 (microsoft#28590)
  feat: allSelectedRows and someSelectedRows should be more reliable (microsoft#28577)
  add vr test to react-tags (microsoft#28484)
  applying package updates
  chore: migrate to monosize (microsoft#26826)
  fix(react-conformance): add @swc/helpers to deps instead of tslib as we use swc for transpilation (microsoft#28599)
  fix: MenuItem content should be spaced 12px from the boundary (microsoft#28162)
  feat: implements selection (microsoft#28497)
  bugfix: moves handleBackdropClick from defaultProps to an override (microsoft#28579)
  Fix empty CSS creation (microsoft#28566)
  chore: replace plop with nx within create-* aliases in root package.json (microsoft#28575)
  applying package updates
  fix: High contrast mode hover style icon fixes in react-button components (microsoft#28156)
  SplitButton: updated border right token for primary variant (microsoft#28555)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants